Regular Expression Example

^[0-9]+:

This will look for at the start of each line something like 1:

It's very useful to reformat some java codes which were posted with line number.