2009年6月25日 星期四

Can a regular expression span over multiple lines?

http://www.delphifaq.com/faq/perl/f770.shtml

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.

沒有留言:

張貼留言