Re: regex observation & question regarding re:escape()
- Posted by jessedavis Sep 19, 2016
- 1579 views
Spock said...
Hmmm, that expr doesn't look like it'd do much. Is this just an example to show the issue or is it, in fact, typical? I might be wrong but it looks to me as if you'd almost be better off doing a straight text match:
Spock
The expression doesn't do much, true. These two regex expressions were taken from the docs directly as they were examples of how to do it. I was particularly interested in the second entry format that uses the #/.../ format because it has the potential to ease the confusion factor. I am building a small single line parser. I thought regex would be easier to implement since it recognizes patterns whereas the built in search routines recognize characters.
In any event, thanks for your help.
Regards,
jd