79717247

Date: 2025-07-28 11:22:20
Score: 0.5
Natty:
Report link

Here motivated by the accepted answer, it might be useful to extend the function to remove both leading and trailing spaces.

Find What: ^\h+|\h+$|(\h+)
Replace With: (?{1}\t:)


If Group 1 (internal spaces) exists → Replace with \t (tab).

Else (leading/trailing spaces) → Replace with ​​nothing​​ (empty string).

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MathArt