Jas
06-23-2007, 10:42 PM
I am having some trouble with the replace() function in JS.
I need to replace all of these: (center]
with these: <center>
and these: [center)
with these </center>
etc.
I can change one, but I need to change them all in a string that the user types in (it's for a forum, obviously).
Thx.
I need to replace all of these: (center]
with these: <center>
and these: [center)
with these </center>
etc.
I can change one, but I need to change them all in a string that the user types in (it's for a forum, obviously).
Thx.