Changes between Version 1 and Version 2 of Ticket #53, comment 5


Ignore:
Timestamp:
Oct 10, 2017, 7:59:48 PM (7 years ago)
Author:
Alfredo Fernández Díaz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53, comment 5

    v1 v2  
    55I don't think [0-9a-fA-F]+ matching a-f letters 'every where they appear' is a problem: it should do so.
    66
    7 If you want to match hex numbers ONLY, take into account that numbers are not normally stuck-in in the middle of some text but surrounded by spaces just like words. I would try, for example, {\s|=}{0[xX]}?[0-9a-fA-F]+?\s+ to match numbers between spaces (or right after an = sign) for starters. Then you can add punctuation signs, a decimal separator, other math operators, etc.
     7If you want to match hex numbers ONLY, take into account that numbers are not normally stuck-in in the middle of some text but surrounded by spaces just like words. I would try, for example, {\s|=}{0[xX]}?[0-9a-fA-F]+\s+ to match numbers between spaces (or right after an = sign) for starters. Then you can add punctuation signs, a decimal separator, other math operators, etc.
    88
    99If I am mistaken or somehow misreading you, perhaps you can write a different example of unexpected behavior -- I am just trying to find what works and what does not.