Quote:
Originally Posted by Mister L
Just did a book today with 2313 dashes in it (x_x) so the new and improved regex was greatly appreciated.
|
Quote:
Originally Posted by Mister L
Oops, just noticed that my code got eaten... my replace is –# 160 ;\1# 160 ;– only without the spaces, obviously. 
|
You can get around this restriction by using the
[ noparse] [/noparse] tag, but you have to "break" the entity in the middle (I usually shove it right after the ampersand):
Code:
–&[ noparse]#160;[/noparse]\1&[ noparse]#160;[/noparse]–
which will get you this:
– \1 –
The forum "helpfully" decides to substitute characters, but in this case, we don't want them, so we tell it "not to parse".