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 <[email protected]>:
> 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
> [email protected]
> http://mail.perl.org.il/mailman/listinfo/perl
>
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to