@leosmith:Why don't you give my method a try? It'll save you a lot of work.
If you save a word doc as a filtered html doc and open it with a text editor, a paragraph with a link in it will look like this in the html file:
Code: Select all
<p class=MsoNormal>Here's link to Google <a href="http://google.com/">Google</a></p>
Since the forum software doesn't understand HTML code, you'll need to replace HTML code with BBCode and delete unneeded tags.
If you search for
</*p[^>]*> and replace it with nothing, you'll get:
Code: Select all
Here's link to Google <a href="http://google.com/">Google</a>
Now all you have to do is replace the href tags with BBCode tags by searching for
<a href="([^"]+)">([^<]+)</a> and replacing it with
[url=\1]\2[/url], and you'll end up with:
Code: Select all
Here's link to Google [url=http://google.com/]Google[/url]
This method works with all editors that support regular expressions, e.g.
Notepad ++ or
TextWrangler if you have a Mac.