Manual talk:PhpWiki conversion

i found that the regex's noted in the topic left things all backward, so i modified them:

s!\[\(.*\)|\(http.*\)]![\2 \1]!g # url format -- OK s!\[\(.*\)|\(.*\)\]![\2|\1]!g  # switch display and link text -- OK s! |\]!]!g s!\[ ![!g s!|! !g
 * 1) link markup
 * 1) s!\[\([^]]*\)\]!\1!g  # double bracketize -- OK
 * 2) s!\[\[\(http.*\)\]\]![\1]!g  # undo double-bracketing urls by above -- OK