Click to See Complete Forum and Search --> : Just somethign I whiped up out of nessecity


PeOfEo
09-13-2003, 12:10 AM
I could not find anything that would go through strings and replace characters (I know the forum I have does it but thats not what I mean) I mean on a alrge scale like something where I can paste in text and in another text box put in a character and in another one put what to replace it with. So I made one myself using replace statements, something.text=replace(something.text,replacethis.text,withthis.text)
you can find it at http://knights.europe.webmatrixhosting.net/replacer.aspx
It looks like crap and all because I just used the text boxes from my old forum because I did not want to write so much code since this is only since i have a bunch of stuff that I need to add <br>'s for so it wont look like crap as an html doc. I needed it maybe some of you will too.

96turnerri
09-13-2003, 07:44 AM
its quite good mite use it for my site, if i can find a use for it lol:D

PeOfEo
09-13-2003, 09:14 AM
Well I used it because I was trying to post a transcript of a chat with stuff like
[5.16.03]<peofeo> hi hows it going So i replaced all of the <'s with & lt; and the >'s with & gt; those &'s I just spaced out so It would not turn into the special character. Anyways after that I turned the ['s into <br>[ then it did not space itself out and the string replacer was a success.

96turnerri
09-13-2003, 10:02 AM
yeah i had to use something like that, annoying when < and > change really p's me off lol

pyro
09-13-2003, 10:24 AM
This is really just elementary regexp... ;)

96turnerri
09-13-2003, 10:38 AM
lol pyro you always make me laugh m8 :D

pyro
09-13-2003, 10:41 AM
Guess I just wasn't sure why a new topic was started for this... it's like one line in PHP...

PeOfEo
09-13-2003, 12:03 PM
Its one line in asp.net too, I just needed something and was wondering if anyone else needed it.
All I did was
textmain.text = replace(textmain.text, replacethis.text, withthis.text)