Results 1 to 6 of 6

Thread: More RegEx help, (looking back?)

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved 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
  •  



Click Here to Expand Forum to Full Width