Posts

Showing posts from July, 2009

Multiline Regular Expressions

There are a lot of text editors that offer regular expression search and replace, but rare are those that support multiline regular expressions. In my case I need to find all the function headers with starting body bracket. example: "int a(int b, int c) {" should be changed with "int a(int b, int c) { printf("Entered function a");" Text editor that supports such thing is called "EditPad Pro". Besides multiline regular expression support, it also have coloring system for your regular expression, so u can debug your regex easier. To be edited with regular expressions that solved my problem