#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2009
    Posts
    12
    Rep Power
    0

    Getting the address from a asm instruction


    hello

    i would like to match any hex address that begins with 0x and the range length of the address muss be 10 and the last character is (0-9)and(A-F):

    movl %esi,0x00306008 > match 0x00306008
    movl %esi,0x0030600w > not match
    movl %esi,0x003068 > not match
    movl %esi,0x00306008888 > not match
    movl 0x10(%ebp),%ebx > not match

    movl $0x0023a960,%ecx > match 0x0023a960

    Please help me with regex nightmare, Thank you!
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,115
    Rep Power
    9398
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2009
    Posts
    12
    Rep Power
    0
    Thank you i got it:
    0x[0-9a-fA-F]{8}

IMN logo majestic logo threadwatch logo seochat tools logo