Changeset 3632


Ignore:
Timestamp:
Feb 21, 2014, 8:03:40 PM (5 years ago)
Author:
cameron
Message:

Update HexBytes? regexp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/performance/perf.py

    r3629 r3632  
    216216expressions.append(Expression('([0-9][0-9]?)/([0-9][0-9]?)/([0-9][0-9]([0-9][0-9])?)', 'Date', ('reb',)))
    217217expressions.append(Expression('([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)?|([^ @]+)@([^ @]+)', 'URIorEmail', ('reb',)))
    218 #expressions.append(Expression('(^| )0x([a-fA-F0-9][a-fA-F0-9])+($| |[.:.,?!] )', 'HexBytes', ('reb',)))
    219 expressions.append(Expression('0x([a-fA-F0-9][a-fA-F0-9])+', 'HexBytes', ('reb',)))
     218expressions.append(Expression('(^|[ ])0x([a-fA-F0-9][a-fA-F0-9])+[.:,?!]?($|[ ])', 'HexBytes', ('reb',)))
     219#expressions.append(Expression('0x([a-fA-F0-9][a-fA-F0-9])+', 'HexBytes', ('reb',)))
    220220
    221221
     
    228228
    229229
    230 expressions.append(Expression('(^|[^A-Z0-9:])([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}($|[^A-Z0-9:])', 'IPv6', ('reb',)))
     230#expressions.append(Expression('(^|[^A-Z0-9:])([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}($|[^A-Z0-9:])', 'IPv6', ('reb',)))
    231231
    232232programs = ['bitstreams', 'grep', 'nrgrep112']#, 'agrep', 'pcregrep']
Note: See TracChangeset for help on using the changeset viewer.