For all who would like to learn regex

Hi,

Just wanted to share a great regex resource with the community. Includes tutorial, cheatsheet and playground. Great for learning and testing regex.

Regexlearn.com: Step by step, from zero to advanced.

7 Likes

Thanks for sharing.

I’ve been found myself using ChatGPT to write me a regex, saves so much time and hassle. Doesn’t mean we shouldn’t learn though!

Used ChatGPT to write regexps for me only to have to debug the things.

Also it has no knowledge of the operting context. Needed a compex RE to find/reformat some data but ChatGPT insisted I use a particular sed command one that is not in the BSD version of sed on macOS. All ChatGPT knew about was GNU sed eventually after a long series of specific chats it finally mentioned that it presumed I use using GNU sed.

Also experienced the same when getting a bootstrap to perl programming. It fails to include specific modules that are needed.

I can recommend regex101.com too.

2 Likes

Seconded. Handy for learning and for building/testing regexes for, say, Drafts Actions.

1 Like

What’s the saying…if you solve a problem with a regex you now have two problems :rofl:

Here’s another option for testing for Python: https://pythex.org

3 Likes