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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53, comment 5

    initial v1  
    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 numbers are never written stuck-in in the middle of some text. 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.