Thread
:
Trying to limit a search to a single line...
View Single Post
04-11-2012, 05:56 PM
#
8
Timur
Connoisseur
Posts: 54
Karma: 37363
Join Date: Aug 2011
Location: Istanbul
Device: EBW1150, Nook STR
Adding newlines in the character class will prohibit multiline matches in this case:
Code:
>([^“\r\n]*)”
If you prefer it that way, you can augment the pattern with a look-behind assertion to get rid of the ">" character from the matched string:
Code:
(?<=>)([^“\r\n]*)”
Timur
View Public Profile
Find More Posts by Timur
Track Posts by Timur via RSS