Posted by Frank Hale on 1999-06-01
> >>how would I match newlines in perl?
>
> Use the /s modifier. For example:
> if ($token =~ /template{(.*)}/s) ...
>
> This modifier "tells Perl to pretend the string is a
> single line--even if it
> isn't."
Thank you!!!
>(Book:Programming
> Perl,Publisher:O'Reilly,Author:Larry Wall) This is a
> GREAT book if you don't have it.
Yes I have it. Man I guess I need to start reading it.
Guess I didn't fully understand regular expressions
but I will have another read through it.
Thank you for your help I really appreciate it.
Sometimes all it takes is an explanation from someone
else before something seems clear.
Take care.
===
From: Frank Hale
Email: frankhale@xxxxx.xxx
ICQ: 7205161
Linux: http://www.netalive.org/nets_linux.html
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Previous post | Next post | Timeline | Home