Sublime Forum

Only select lines that start with a numerical value

#1

Hello.
I’m fairly new to Sublime Text but I’m finding it very useful. I’m just wondering if there’s an easy way to select multiple lines that only start with a numerical value.
For example, I want to select lines 3,6 and 9 and move each one up two lines. Is this possible?

  1. AFC Wimbledon
  2. Mansfield
  3. 1-3
  4. Bradford City
  5. Colchester
  6. 2-0
  7. Carlisle
  8. Grimsby
  9. 2-0

Required outcome:

  1. AFC Wimbledon
  2. 1-3
  3. Mansfield
  4. Bradford City
  5. 2-0
  6. Colchester
  7. Carlisle
  8. 2-0
  9. Grimsby

I have hundreds of lines that I want to work with.

Thank you.

0 Likes

#2
  1. Find in regex mode with ^\d
  2. Find all (Alt+Enter)
  3. Shift+End
  4. Ctrl+Shift+↑
1 Like

#3

jfcherng Thank you very much.

0 Likes