[talk-au] Street Abbv. patch for validator plugin

Sam Couter sam at couter.id.au
Wed Jul 8 10:17:20 BST 2009


John Smith <delta_foxtrot at yahoo.com> wrote:
> Java flavoured, and I'm not talking about tasting coffee here :)

Java regexes are almost Perl-compatible regexes (PCRE).

> You are probably correct, it's taken me a number of years to get my head round regex for the amount I dabble in at present, and I have no idea which would be more efficient for the parser...

Some people, when confronted with a problem, think "I know,
I'll use regular expressions."  Now they have two problems.
  -- Jamie Zawinski in comp.emacs.xemacs

The quote isn't quite true, but it's witty and something to keep in
mind: regexes are hard to write right and even harder to read.

I believe the \.? expression is more efficient than (|.), and I also
think it's easier to read.
-- 
Sam Couter         |  mailto:sam at couter.id.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/talk-au/attachments/20090708/e28c97dc/attachment.pgp>


More information about the Talk-au mailing list