Thread
:
regex puzzle: finding paragraph before...
View Single Post
02-23-2012, 03:58 PM
#
6
DiapDealer
Grand Sorcerer
Posts: 28,671
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's pretty hard to fine-tune an expression's (non)greediness in 0.4.2 when the "Minimal Matching" check-box is the only method of control you have over it.
In 0.5.x and higher, I'd use something like:
Code:
<p(.*?)?>.*?</p>(?=(\s+)?<div)
Last edited by DiapDealer; 02-23-2012 at
04:03 PM
.
DiapDealer
View Public Profile
Find More Posts by DiapDealer
Track Posts by DiapDealer via RSS