Forum Moderators: coopster
I need some help with a regular expression which does the following thing:
search pairs of double quotes ("bla") and replace them by nice, typograpic ones (“bla”).
the text the preg will have to work on is nothing fancy / evil (i.e. doesn't contain html one would have to worry about). just the pure matching of quotes and replacing them by nice typographic ones...
thanks for your help!
Florian
You'll have to modify your logic and/or the regular expression to check for the possibility of HTML form elements and their quoted attributes. One trick that I could think of off-hand would be to search for the possibility of an equal sign right before the first double quotation mark perhaps.