OK, i'm not very familiar with regular expressions but i have a feeling this is a simple problem. I just need someone to enlighten me.<br>
<br>
I need to replace the # character inside a string with another string. Easy enough.. i just use "#" as my pattern to match and give the string to replace it...<br>
<br>
but what i also want to do is not replace the # character if it is preceded by a backslash... and also not display the backslash... so, lets say that i'm replacing the "#" with "123".<br>
<br>
"blah#blah" should become "blah123blah"<br>
<br>
but "foo\#bar" should be "foo#bar" (without the backslash showing)<br>
<br>
any ideas?<br>
<br>
<br>
I need to replace the # character inside a string with another string. Easy enough.. i just use "#" as my pattern to match and give the string to replace it...<br>
<br>
but what i also want to do is not replace the # character if it is preceded by a backslash... and also not display the backslash... so, lets say that i'm replacing the "#" with "123".<br>
<br>
"blah#blah" should become "blah123blah"<br>
<br>
but "foo\#bar" should be "foo#bar" (without the backslash showing)<br>
<br>
any ideas?<br>
<br>