Ignore:
Timestamp:
Jun 9, 2014, 10:00:16 PM (5 years ago)
Author:
cameron
Message:

New xHexBytes expressiono

File:
1 edited

Legend:

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

    r3655 r3861  
    222222expressions.append(Expression('([0-9][0-9]?)/([0-9][0-9]?)/([0-9][0-9]([0-9][0-9])?)', 'Date', ('reb',)))
    223223expressions.append(Expression('([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)?|([^ @]+)@([^ @]+)', 'URIorEmail', ('reb',)))
    224 expressions.append(Expression('(^|[ ])0x([a-fA-F0-9][a-fA-F0-9])+[.:,?!]?($|[ ])', 'xHexBytes', ('reb',)))
     224expressions.append(Expression('[ ](0x)?([a-fA-F0-9][a-fA-F0-9])+[.:,?! ]', 'xHexBytes', ('reb',)))
    225225#expressions.append(Expression('0x([a-fA-F0-9][a-fA-F0-9])+', 'HexBytes', ('reb',)))
    226226
     
    236236#expressions.append(Expression('(^|[^A-Z0-9:])([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}($|[^A-Z0-9:])', 'IPv6', ('reb',)))
    237237
    238 programs = ['bitstreams', 'bitstreams_avx2', 'gre2p',  'nrgrep112']#, 'agrep', 'pcregrep']
     238programs = ['bitstreams', 'gre2p',  'nrgrep112']#, 'agrep', 'pcregrep']
    239239# programs = ['bitstreams', 'bitstreams_avx2']
    240240#programs = ['bitstreams']
Note: See TracChangeset for help on using the changeset viewer.