Regex replace function in classic asp
$30-80 USD
Paid on delivery
I need two simple and WORKING vbscript functions (in classic ASP) to replace forum variables just like on phpBB forums.
We have a classic asp, vbscript-created forum. Right now we use a complex spaghetti code so users can use standard phpBB codes to post links, images etc. Example:
[b]Some text[/b] - will translate into a bold "Some text" HTML
[img][login to view URL][/img] will translate into HTML image tag
etc. More examples are below.
I need 2 VBscript classic asp functions
1) First will handle the 4 major phpBB codes: url,img,mail and quote and convert them from phpBB codes to HTML
2) 2nd function that will convert HTML back to phpBB-style codes.
FINAL DELIVERABLE: an include with 2 functions, and an asp test page where we can test your functions at work.
Function should handle situations when user places spaces, quotes, and forgets a closing tag.
Other tag examples:
[url][login to view URL][/url] will translate into an HTML anchor tag with src and link being [login to view URL]
[url=[login to view URL]]URL text[/url] will translate into HTML anchor tag with src=[login to view URL] and link text "URL text".
etc.
Right now we are having a difficulty generating proper [quote]Some text[/quote] code. This should produce an HTML that looks like "<div class="quote">Some text</div>
And there's also an option: [quote user="SomeUser"]Some text[/quote] which should product HTML:
"<div class="quote">Originally posted by <strong>SomeUser</strong> Some text</div>"
We think that the best solution here is Regular Expressions. Here's a good start:
[login to view URL]
## Deliverables
IIS 5 or 6, Windows XP or Windows 2003
* * *This broadcast message was sent to all bidders on Tuesday Jul 28, 2009 5:38:59 PM:
Dear bidders, We found a developer for this project. Thank you for your time and bids. Regards, Alex
Project ID: #2814399