All pastes #591523 Raw Edit

Mine

public text v1 · immutable
#591523 ·published 2007-06-27 08:04 UTC
rendered paste body
[02:44] musikgoat: using it in a preg_replace.  i have the following expression:   /\<div class=\"quote\"\>.*Quoting: ([^&]*)\<\/div\>([^&]*)(\<\/div\>)/i
[02:46] musikgoat: it doesn't pick up this string, <div class="quote"><div class="quoting">Quoting: Bauldrick</div>Not too sure about it though, don't think it comes up after reboot</div>
[02:48] bline: doesn't match anything?
[02:48] musikgoat: well,  before i added the ( ) around the last </div>
[02:49] musikgoat: it replaced everything that didn't have the ascii html code
[02:51] bline: I see
[02:51] bline: it misses here: too sure about it though, don&
[02:52] musikgoat: i added the parenths around the (\&lt;\/div\&gt;)
[02:52] musikgoat: to try to counter that catch
[02:52] musikgoat: but doesn't seem to fix it
[02:52] musikgoat: its probly bad logic on my part
[02:52] bline: you're ([^&]*) is stopping on &#039;
[02:53] musikgoat: yeah?
[02:53] bline: then the (\&;lt;\/div\&gt;) part isn't matching
[02:54] bline: because it's #039 and not &lt;
[02:54] musikgoat: so i need to add in some iff
[02:54] bline: do you see?
[02:54] musikgoat: yeah
[02:54] musikgoat: in ([^&]*) 
[02:54] bline: I've only diagnosed, too many drinks to fix it real quickly :)