Thread
:
Multiple line regexp
View Single Post
11-02-2010, 10:33 AM
#
5
chaley
Grand Sorcerer
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
View Public Profile
Visit chaley's homepage!
Find More Posts by chaley
Track Posts by chaley via RSS