Code Comments
Programming Forum and web based access to our favorite programming groups.Hi. Is there a way to continue very long reg. ex. lines on mutliple lines? I tried using a backslash at the end of line which works in other languages, but Perl seemed to treat the escaped newline as part of the expression. I have some very complex reg. ex. that span many columns that I would like to break up across multiple lines for readability. Is there a way to do this? Thanks, DrX
Post Follow-up to this messageXenos wrote: > Hi. Is there a way to continue very long reg. ex. lines on mutliple > lines? I tried using a backslash at the end of line which works in > other languages, but Perl seemed to treat the escaped newline as part > of the expression. I have some very complex reg. ex. that span many > columns that I would like to break up across multiple lines for > readability. Is there a way to do this? That's what the /x modifier is for. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.