For example if I have the the regex /a\d+b/ that matches the string a123 the regex fails, and the regex engine inspected the end of the string. Is there a way to tell if that has happened?
Now I don't know in advance how many lines to read before trying to match, so the idea is to check whether the regex failed while being in the middle of a regex.
If there's a better solution to that I'm happy as well ;-)
In reply to Did regex match fail because of "end of string"? by moritz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |