nagalenoj has asked for the wisdom of the Perl Monks concerning the following question:
I have tried a simple regular expression like,
to match the following text lines,^[a-zA-Z]+(['.]?\s*[a-zA-Z]+)*$
And at the same time, it chould not match the following linesSt.John's high school. A. B. C. school. Institute of management. oxford university. A.B.C college. Ragu ram's college of technology.
The given regular expression is working fine.A..B.C college. St.John''s high school. St.John'.'s high school.
Ofcourse, I have searched in google to some extent.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: About regular expressions
by CountZero (Bishop) on Mar 31, 2009 at 05:49 UTC | |
|
Re: About regular expressions
by eye (Chaplain) on Mar 31, 2009 at 06:18 UTC | |
|
Re: About regular expressions
by AnomalousMonk (Archbishop) on Apr 01, 2009 at 00:18 UTC |