Adium

Changeset 22243

Show
Ignore:
Timestamp:
01/10/2008 05:47:10 PM (11 months ago)
Author:
evands
Message:

I don't understand why the valid regex expression
([0-9]{1,3}\.){3}[0-9]{1,3}
is acting identically to
([0-9]{1,3}\.){3}[0-9]
in lex. It works fine for me in other tools, such as SubEthaEdit's Find dialogue.

([0-9]{1,3}\.){3}[0-9][0-9]?[0-9]? behaves as expected, allowing a dotted quad of 3 digits per section.

Fixes #7839

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AIHyperlinks Framework/Source/SHLinkLexer.l

    r21220 r22243  
    3737%} 
    3838urlSpecifier    ([[:alnum:]\x80-\xf4-]+\.)+{domains}(:[0-9]+)?(\/.*)? 
    39 ipURL           ([0-9]{1,3}\.){3}[0-9]{1,3}(:[0-9]+)?(\/.*)? 
     39ipURL           ([0-9]{1,3}\.){3}[0-9][0-9]?[0-9]?(:[0-9]+)?(\/.*)? 
    4040singleDomain [[:alnum:]\x80-\xf4-]+ 
    4141mailSpecifier   [^:\/]+\@.+\.{domains}