Regex replace function in classic asp

Cancelled Posted Jul 27, 2009 Paid on delivery
Cancelled 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

ASP Engineering MySQL PHP Project Management Script Install Software Architecture Software Testing Visual Basic

Project ID: #2814399

About the project

7 proposals Remote project Active Jul 28, 2009

7 freelancers are bidding on average $62 for this job

stevebryant

See private message.

$63.75 USD in 7 days
(530 Reviews)
6.7
tonythksl

See private message.

$68 USD in 7 days
(117 Reviews)
6.1
parag0d

See private message.

$42.5 USD in 7 days
(8 Reviews)
4.7
edreamzinc

See private message.

$68 USD in 7 days
(26 Reviews)
5.1
nishatech

See private message.

$55.25 USD in 7 days
(27 Reviews)
4.2
vw7301701vw

See private message.

$68 USD in 7 days
(1 Review)
1.4
lucianobonfim

See private message.

$68 USD in 7 days
(0 Reviews)
0.0