/ Published in: Regular Expression
Tested in TextWrangler 2.1.3 on 17 Nov. 2006, and works beautifully :O
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(?# phpBB to ExpressionEngine Conversion ------------------------------------ Intra-forum links replacement regex ORIGINAL: --------- http://www.holybork.com/viewtopic.php?p=1129&highlight=#1129 TRANSFORMED: ------------ http://www.holybork.com/forums/viewthread/1129/ ) (?# MATCH ) (.*)viewtopic\.php\?p=(\d+)(.*) (?# REPLACE ) \1forums/viewthread/\2/ (?# 17 Nov. 2006 - Raws )