perl CGI (3)
Visual Basic (1)
Regular expressions over multiple lines
2 comments. Current rating: (1 votes). Leave comments and/ or rate it.
Question:Can a regular expression span over multiple lines?
Answer:No. You have to do tricks like replacing all \n with a certain string (e.g. __NEWLINE__), then use this certain string in your regex and finally replace all __NEWLINE__ with \n again.