[Israel.pm] regex question
avishalom at gmail.com
Tue Jan 5 05:25:54 PST 2010
I don't think I understand this
do you want the not myword to be at least 6 letters long ?
do you want to only catch instances of "myWord", because once you hit
another word you stop :?
try converting myWord to \x05 or something
2010/1/5 Yossi Itzkovich <Yossi.Itzkovich at ecitele.com>:
> I need to catch a text between, for example, the word "myWord" and a word which is not "myWord".
> I can do it like : m~\bmyWord\b(.+?)\b[^m][^y][^W][^o][^r][^d]\b~ but I guess there is a much better alternative.
> Thanks in advance
> Perl mailing list
> Perl at perl.org.il
More information about the Perl