Skip to content
  • wolfgang's avatar
    [project @ 2004-10-01 03:52:57 by wolfgang] · 352def90
    wolfgang authored
    Replace \? by \{0,1\} in the sed regular expressions, as the former
    does not work with Mac OS X's (= BSD's) sed.
    
    I'm a bit confused by the situation here:
    According to Mac OS X man pages, the latter syntax is part of the
    POSIX 1003.2 standard for basic regular expressions, while the former
    is not. According to the manpage installed with my Gentoo linux, neither
    is in the POSIX standard.
    
    However, GNU sed accepts both \? and \{0,1\}, while Mac OS X's sed accepts
    only \{0,1\}.
    352def90