| Programming C# C++ (7) Delphi (604) Java (8) JavaScript (55) perl (40) mysql (3) perl CGI (3) php (12) VBScript (1) Visual Basic (1)
|
Regular expressions over multiple lines
(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.Comments:
|