czech_d3v3l0p3r wrote:...
... Also
shouldn't be replaced with anything, just leave it as it is, because the period is correct.
Rather vague statements (because the period is correct). What does that last part even mean? If it wasn't a period, but some other punctuation mark, would it also have been correct? Is a period treated differently than other punctuation marks? What is correct?
czech_d3v3l0p3r wrote:The regex doesn't have to care about other characters than just the above noted. If it's needed ignore everything I've previously said. I just need to move the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> dot/exclamation/question mark before the tag.
Err, in case of two different punctuation marks:
you don't want anything to change, but with two the same punctuation marks:
Code: Select all
'ggg .<ref>GGG</ref>. ggg' // earlier you said you wanted to change it to: ccc .<ref>CCC</ref> ccc
the latter dot is removed.
As you can see, it is very important to describe your requirements very strictly. If you don't do that, all I can do is speculate which I will not do.
There's no need to answer my question in this reply. I only asked them to underline how your statements are open to interpretation. Perhaps someone else is able to give you a hand with it.
Best of luck.