Return to Snippet

Revision: 1879
at November 17, 2006 14:36 by raws


Updated Code
(?#
   phpBB to ExpressionEngine Conversion
   ------------------------------------
   Intra-forum links replacement regex
   
   ORIGINAL:
   ---------
   http://www.holybork.com/viewtopic.php?p=1129&amphighlight=#1129

   TRANSFORMED:
   ------------
   http://www.holybork.com/forums/viewthread/1129/
)

(?# MATCH )
(.*)viewtopic\.php\?p=(\d+)(.*)

(?# REPLACE )
\1forums/viewthread/\2/

(?# 17 Nov. 2006 - Raws )

Revision: 1878
at November 17, 2006 14:35 by raws


Initial Code
(?#
   phpBB to ExpressionEngine Conversion
   ------------------------------------
   Intra-forum links replacement regex
   
   ORIGINAL:
   ---------
   http://www.holybork.com/viewtopic.php?p=1129&amphighlight=#1129

   TRANSFORMED:
   ------------
   http://www.holybork.com/forums/viewthread/1129/
)

(?# MATCH )

(.*)viewtopic\.php\?p=(\d+)(.*)

(?# REPLACE )
\1forums/viewthread/\2/

(?# 17 Nov. 2006 - Raws )

Initial URL

                                

Initial Description
Tested in TextWrangler 2.1.3 on 17 Nov. 2006, and works beautifully :O

Initial Title
phpBB to EE - Intra-forum links transformation

Initial Tags

                                

Initial Language
Regular Expression