i’d like a tutorial (website or book) that will enable me to make use of sublime’s FIND & REPLACE tools.
Regular expressions tutorial
You may be interested in this site; it has a lot of information about regular expressions in general, including a tutorial. It’s not Sublime Text specific, but 95% of the information there is still applicable anyway.
This is a great tool to build regexes with visual feedback on what’s going on. https://regex101.com
thanks for the suggestions; as i’m also a bit of an R geek, i’ll also work through the examples at
https://cran.r-project.org/web/packages/stringr/vignettes/regular-expressions.html
but to get help with my specific problem:
i want to replace spaces following text but preceding numbers with tabs
TEXT:
Bishop 1 0 1 1964 1964
Blacher 1 0 1
Blackmore 3 1 2 1926 1963
i can select the target spaces with
[‘a-z’] [‘0-9’]
but i don’t know what to REPLACE them with
Definitely put that into www.regex101.com to see how it works if you want. Regex is a bit of a craft-and-forget thing in my opinion and it’s always good to play in a sandbox a bit if you find yourself tweaking an expression more than three times and still can’t get it to do what you want.