XF 1.2 HTML code reappearing after import

In vBulletin 4.2.2 I had a forum with many posts where I saved the posts with html which were then converted to BB code. Now after importing, some of these posts have the original HTML showing, in some cases mixed in with part of the post in BB code. This is weird.
 
For the most part, the post is imported as is. It sounds like the HTML was actually in the post (and you had HTML enabled for that forum, which XF does not support). I'm afraid the markup would have to be edited manually.
 
Here is the code that needs to be converted - Please note the where I entered XXXXX this is a string that changes from one instance to the next so the XXXXX is not something that should be altered in the cleanup, but it needs to be untouched. I suppose I will have to do multiple passes, changing the string before and then between and then after those XXXXs.

(<u><a href="http://insidestocks.com/chart.asp?sym=XXXXX&amp;code=BCMM" target="_blank">XXXXX </a></u>) (<u><a href="http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>) <i>(XXXXX)</i>
 
Here is the code that needs to be converted - Please note the where I entered XXXXX this is a string that changes from one instance to the next so the XXXXX is not something that should be altered in the cleanup, but it needs to be untouched. I suppose I will have to do multiple passes, changing the string before and then between and then after those XXXXs.

(<u><a href="http://insidestocks.com/chart.asp?sym=XXXXX&amp;code=BCMM" target="_blank">XXXXX </a></u>) (<u><a href="http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>) <i>(XXXXX)</i>

What is the before and after?
 
Before
Code:
(<u><a href="http://insidestocks.com/chart.asp?sym=XXXXX&amp;code=BCMM" target="_blank">XXXXX</a></u>) (<u><a href="http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>)
After

Code:
([U][URL='http://insidestocks.com/chart.asp?sym=XXXXX&code=BCMM']XXXXX[/URL][/U]) ([U][URL='http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&a_bid=6ae5b6f7']analysis[/URL][/U])
 
Quick Find: (<u><a href="http://insidestocks.com/chart.asp

Regular Expression: #(<u><a href="http://insidestocks\.com/chart\.asp\?sym=([^&"]+)&amp;code=BCMM" target="_blank">([^<]+)</a></u>) (<u><a href="http://club\.ino\.com/trend/analysis/stock/([^\?"]+)\?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>)#siU

Replacement String: ([U][URL='http://insidestocks.com/chart.asp?sym=\1&code=BCMM']\2[/URL][/U]) ([U][URL='http://club.ino.com/trend/analysis/stock/\3?a_aid=CD28&a_bid=6ae5b6f7']analysis[/URL][/U])
 
Top Bottom