Thread: Regex Pattern
View Single Post
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 04-27-2014 , 00:31   Re: Regex Pattern
Reply With Quote #6

Quote:
Originally Posted by Black Rose View Post
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 View Post
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.
__________________

Last edited by Neeeeeeeeeel.-; 04-27-2014 at 00:32.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-