View Single Post
Old 11-02-2010, 10:33 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You probably need to use the DOTALL flag on your regexp so that \n is matched by '.' and the character classes.

Without looking at the regexp at all to see if my suggestion makes sense, try
Code:
(?s)^[0-9]+\.\s+[a-zA-Z ]+\s+[a-zA-Z ]+
chaley is offline   Reply With Quote