Update: I’m gathering all answers and other resources here:
Hey all. Considering that Obsidian is adopting RegEx for its search, I was wondering what are the best sources to learn RegEx?
Now and then, I use RegEx with tools like textcrawler and grepwin. However, I never managed to get the hang of it.
What are the best ways?
Sure - I’ve been waiting for a more sophisticated search to get to the point of “Obs is the tool to commit too”. So I’m eager to understand how to use it to see if we are there yet.
Automators podcast number 34: Getting Cozy with Regular Expressions, might be of interest https://www.relay.fm/automators/34
Also the podcast show notes include links to other resources.
There is a great interactive tutorial on RegEx here: https://regexone.com/
I found this to be one of the more useful for learning.
If you are trying to build a more complex regex it can be helpful to use a sandbox/playground like this one: https://regexr.com/ - since it “explains” the query as well and helps to debug
It has a few options such as Python and PHP, so don’t forget to select “ECMAScript (JavaScript)” as that’s the one Obsidian uses.
I like this website because you can put your content below and your regex above to debug it; the right sidebar explains your regex in plain terms so you can see why there isn’t a match.
This is a great thread and I’d be sad if it’s closed as a Resolve Help post. Maybe someone can post a mega-thread with regex resources in Share & Showcase?