I can't think of a clean way to use the punct class.
However, I will state that writing out the chars you *do* want to
replace in a class is going to run faster than what you have. On the
other hand, it's annoying to write. :-)
--Ben
Patricia Lee wrote:
> I want a CF regex to replace all punctuation except for the / character.
>
> I made it work with the following:
>
> [^/[:alpha:][:digit:][:space:]]
>
> But I was wondering if there was a simpler way to write it with the
> [:punct:] class?
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Regex Question: All punct except... Patricia Lee
- Re: Regex Question: All punct except... Ben Doom
- Re: Regex Question: All punct except... Patricia Lee
- RE: Regex Question: All punct except... Alistair Davidson