> Say that you have a file with these contents:
>
> 11251514245222Hello2Uback2435252525
> 13145252424241Hello2452626262626
>
> Is there any regex that when looking for the string "Hello" it will detect
> the 'Hello' on the second line and not the first one??? (something like
> exact word matching??)
>
You haven't mentioned if the ending numbers have a patterned to them.
If they are always 10 digits (and the starting number is always 14 digits),
you could use this regexp:
/\d{14}$word\d{10}/
But if this is the case, it would be much better to use substr() to extract
the interesting stuff (Hello \ Hello2Uback) from within the surrounding BS.

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to