Menu
I’m having a regular expressing problem. When I pass the following:
[quote]
This is a test path. Here is a new line
Here are a couple of asterisk tests:
**
And here
Finally, here is a bbcode
[vid=”flythrough”]
into the following javascript funtion
[code]
txtHelper.saveText= function(txt)
{
txt.replace(/n/g, “\n”);
txt.replace(/**/g, “[]”);
}
it doesn’t change anything, neither the new lines into “
TIA,
anw