in my app a user is able to enter text, which later I then search from and extract based on future submission.
Problem is users can sometimes have a type or forget a period, etc...
is there a way in ruby to say match with X% confidence level?
Meaning if the match goal is 500 characters, and a match was found with 490 characters, match it, versus not matching anything?
Thanks
In this case, regular expressions aren't your best tool. Maybe something like Levenshtein distance instead?
I read about the Tre library recently, sounds like what you are looking for:
http://laurikari.net/tre/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With