ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  An Introduction to Haskell, Part 1: Why Haskell
Subject:   regex
Date:   2007-05-26 01:45:03
From:   pipping
'^(NYC?|New York( City)?)$'

is better written as

'^N(YC?|ew York( City)?)$'

or even

'^(?=N)(NYC?|New York( City)?)$'

1 to 1 of 1
1 to 1 of 1