Tuesday, 20 August 2013

Regex to find end of line NOT WORKING

Regex to find end of line NOT WORKING

I have some text that looks like this:
61234 fern valley way #1235
Louisville, Ky
502-234-1243
Mshillaryasdfasdf28@gmail.com
Hillary Wilson
Objective
To improve
Im using the following regex to find the first word on every line:
"[[:alpha:]]{2,}[\s|.|,|\$|\n|\r]"
However, it is returning only:
fern
Louisville,
gmail.
Hillary
To
It will not catch Objective I'm not sure what I'm missing here, any
suggestions???

No comments:

Post a Comment