[Israel.pm] regex question
Avishalom Shalit
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
-- vish
2010/1/5 Yossi Itzkovich <Yossi.Itzkovich at ecitele.com>:
> Hi,
> 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
>
> Yossi
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>
More information about the Perl
mailing list