Skip to main content
Inspiring
February 8, 2023
質問

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

  • February 8, 2023
  • 返信数 1.
  • 132 ビュー

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!

 

 

このトピックへの返信は締め切られました。

返信数 1

Peter Spier
Community Expert
Community Expert
February 8, 2023

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.