Topic awaiting preservation: Regular Expression - mr.MaX your favourite stuff :) |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Stockholm, Sweden |
posted 03-23-2002 17:40
Hi everybody, I have a pretty coool question for you guys. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 03-23-2002 18:03 |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 03-23-2002 19:14
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-23-2002 19:59
Although, I don't work in ASP, the following code should do the trick (it's actually JavaScript, set to run on server): |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 03-23-2002 22:46
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: Stockholm, Sweden |
posted 03-24-2002 04:24
Sorry Ini but I have a tough time to see how I can manage to make a similar function to mr.maX's with that replace function. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2002 07:57
InI, replace() VB function doesn't except regular expressions and what Smash wants to do (he wants to implement some sort of UBB Code) should be done by using regular exspressions (didn't you notice that he wrote "<zork>ANYTHING</zork>" as match string and "<a href="test.asp?name=ANYTHING">ANYTHING</a>" as replace string). |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 03-24-2002 10:05
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2002 10:21
That won't do what he wants... |