
February 4th, 2009, 03:10 AM
|
|
|
Quote: | Originally Posted by ryel01 ...
What I want to do is find and replace all * with X within the string, so it would need to match * followed by a space, or at the $ end of the string. |
I don't really understand the examples you posted, but the requirements above can be translated into the following regex:
Code:
regex : \*(?=\s|$)
replacement : X
Note that \s matches white space characters, tabs, new line characters etc.
|