Quote:
Originally Posted by
theexitwound
but that "anything but a character" doesn't seem to work.
That's because you have a
.* earlier, which means "match absolutely any number of anything".
. is taken as a literal
. inside [ ] brackets, so your ^. doesn't do what you think it does either.
I don't think that will work to do non-greedy match. You don't have non-greedy match available.
Do you actually need to match the entire function
contents? All you need to change is the declaration. If you wanted to make sure it
had function content and wasn't just a function pointer or something, you could just match the very first { after it.
In other words -- tell me your actual goal here, not just the way you want to do it.