I have text that start with lines like:
[1] some text
[2] another text
[56] third
I need to remove the square brackets (only at the beginning of the lines) and leave the number and text as is, like:
1 some text
2 another text
56 third
I use notepad++
Search for
and replace with
^is an anchor for the start of the rowYou have to escape the square brackets, since they have a special meaning in regex
\d+is at least one digitBecause of the brackets around
\d+, the number is stored in\1so you need\1as replace text.