| Programming C# C++ (7) Delphi (618) Java (8) JavaScript (30) perl (9) mysql (3) perl CGI (3) php (4) 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:
|