RegExp help please

Hey guys, was wondering if anyone can tell me how or what I am doing wrong here.

Now I am not guru with the regexp but I don’t see what the problem is, what I have at the moment is this.



Now my understanding is that the (?s) means single line, so when I change that to (?m) I expect it would or should work over multiple lines, but it doesn’t seem to work.

The problem I have is that I am trying to take either of the following




And lastly

[code brush=””]


Anyone have any clues?

here you go:


im using this application, its really handy for regexes.

or use this one, which is a bit more flexible with whitespace;


Cheers when I stuck that in I am getting unmatched parentheses .

Only just looked at your reply.. how stupid.. i had put the (\s)*? in
front of the escape \ symbol.

this is the right one:


Thanks this ended up working a charm, I did make one change so it ended up being.



Again thanks for this.