Hi all,
Ugh! Regular expressions...no matter how many people say "Oh, they're okay once you get used to them..." I can't seem to get used to them.
To be honest, I'm struggling to find any CF based tutorials.
Basically what I want to do is replace content between two quotation marks and add HTML tags to either side, eg.
"This is my beautiful text"
to
<span style'color:black'>"This is my beautiful text"</span>
Is this possible? Am I living in a world of pipedreams?!
Who knows, but if it is possible I'd be very grateful for any help.
PS. As a bonus point, say I wanted it to do the above but NOT in circumstances when the quotation marks are inside a tag (ie. between angle brackets)? Is this possible?
Again, thanks!
Ugh! Regular expressions...no matter how many people say "Oh, they're okay once you get used to them..." I can't seem to get used to them.
To be honest, I'm struggling to find any CF based tutorials.
Basically what I want to do is replace content between two quotation marks and add HTML tags to either side, eg.
"This is my beautiful text"
to
<span style'color:black'>"This is my beautiful text"</span>
Is this possible? Am I living in a world of pipedreams?!
Who knows, but if it is possible I'd be very grateful for any help.
PS. As a bonus point, say I wanted it to do the above but NOT in circumstances when the quotation marks are inside a tag (ie. between angle brackets)? Is this possible?
Again, thanks!