Skip to main content
Inspiring
Feb 8, 2023 3:33 PM UTC
Question

Find and swap position of full stop/period after superior text to position before superiour text

In my text I want the punctuation BEFORE the superiour numbers.
Like this:

Sometimes its not a full stop/period but a comma.

I found this, but that didn't work:

(~F)([[:punct:]])

Who can help me?

Thanks!

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Peter Spier
Community Expert
Community Expert
Feb 8, 2023 4:05 PM UTC

I think you need a script for this. ([\d,]+)([\.,]) and replace with $2$1 seems to reverse the characters fine, but the superscript formatting remains in the same position so it gets applied to the puncutation and is lost from the final digit -- not what you want.

Translate