Sublime Forum

Inserting a character at a certain position

#1

Hello.
I have a list of football matches which are displayed like this:

Oxford City
1
3
Slough
Dover
1
1
St. Albans

Is there a way I can insert a dash after each top number, like this?

Oxford City
1-
3
Slough
Dover
1-
1
St. Albans

Thank you.

0 Likes

#2

regex find/replace (Ctrl+H): find ^(\d+)(?=\n\d+) and replace with \1-

0 Likes

#3

Thank you. I really appreciate it. :slightly_smiling_face:

0 Likes