Quote:
Originally Posted by Black Rose
If you're running it in single line mode you can't check for trailing "{", instead you'll have to check for prefixes like "public" with negative lookbehind.
|
He can add "(?:\n)*" to the pattern.
Quote:
Originally Posted by KliPPy
Why would there ever be "{" before ")"? And about that other stuff, I'm really bad at making regular expressions. That one I got is just a pattern from a site I got on while i was searching for a solution, with a little bit of my tweaking, but i can't get it to work. I would really appreciate some help.
|
Because is the only why you can know if it's a funcion call or definition.
__________________