|
-
Jun 24th, 2005, 04:52 AM
#1
More RegEx help, (looking back?)
yesterday DeadEyes thought be about ?= that is a look ahead assertion. But is there something for looking back too? I need to find a function definition. And it always has "def" infront of it. and a ( after it. So to find a function I can do:
\b[\w\d_]*(?=\()
but I need to add to that to match it ONLY if "def" is in front of it.
I.e:
def _ma5in_(
Anyone have any ideas.
ØØ
Last edited by NoteMe; Jun 26th, 2005 at 04:24 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|