in reply to Re^2: Regex conditional match if previous match in same expression is true?
in thread Regex conditional match if previous match in same expression is true?

Note that Rhandom and I basically posted the same pattern, the main difference being mine doesn't need the (?{})/(??{})/$^N stuff, using the conditional pattern instead (as you originally requested).

Actually to be honest I didnt really look deeply at Rhandom's post before I posted mine. Its cool we came up with the same thing pretty much, but using two different advanced feature sets.

---
$world=~s/war/peace/g

  • Comment on Re^3: Regex conditional match if previous match in same expression is true?

Replies are listed 'Best First'.
Re^4: Regex conditional match if previous match in same expression is true?
by ikegami (Patriarch) on Apr 10, 2007 at 17:37 UTC
    Aye, I noticed that after I replied. I didn't mean to diminish your post. I basically stopped following the thread after Rhandom posted.