in reply to Re: Regex partial/leading match
in thread Regex partial/leading match
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)
|
|---|