I'm trying to look at the beginning of a string to know if it can potentially match a regex, without knowing the full string. Which is of course different from making a completely different regex with substr($regex.'bated' =~ /^bat{3}/; false 'bated' =~ /^bat/; true
(Edited for bad examples)
In reply to Re^2: Regex partial/leading match
by raymorris
in thread Regex partial/leading match
by raymorris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |