From: Michel B. <mi...@bo...> - 2005-02-16 09:43:34
|
Le Mercredi 16 F=E9vrier 2005 10:37, Lionel Bouton a =E9crit : > > >This patch also removes the "$user =3D~ s/\b\d+\b/#/g;" substitution, = as it > > is useless because the hex substitution just before it already does t= he > > job. > > I wonder: this regexp is straight from postgrey and I'm not sure what > the '\b' word-boundary will match. I did a quick google search and foun= d > no detailed information. I don't even know if it is locale-dependent. > Anyone on the list knows the details ? Check "man perlre". It seems it would match beginning or end of expressio= n=20 [^$] and "word boundaries", which usually means the position between alnu= m=20 and non-alnum chars. I usually avoid using those "backslashed shortcuts" in writing regexps, a= s I=20 find that it makes them harder to read and understand... --=20 Michel Bouissou <mi...@bo...> OpenPGP ID 0xDDE8AC6E |