Thanks for testing!
I'm confused about the result you are expecting... the empty pattern would always match for every position
I want to allow users to enter any regex, I run it via eval, and it should behave "normally". The /g/ is just an example of something that my code was doing, which the user knows nothing about. So it seemed to me to be the most "normal" to have the regex behave as if it's the first regex in the program.
In reply to Re^2: Reset meaning of empty pattern?
by haukex
in thread Reset meaning of empty pattern?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |