Best way to learn RegEx for AHK?
Posted: 14 Jan 2016, 16:57
Hi Folks,
I've used regex a tiny bit and am trying to learn more, for a specific project I'm working on. From what I've read, the version of regex that ahk recognizes is fairly similar to other varieties, and is based on Perl. There are a couple free tools I've found for testing regexs I make. Of course there's Regex Tester by Robert Ryan, which is designed for ahk regex testing. But there are a couple of others out there, like Expresso and The Regex Coach.
I noticed that the expression for case-insensitivity is "i)" without quotes, at the beginning of the regex. This works for ahk, but Expresso says it's an error. So that's at least one difference. Are there likely to be lots of other differences too, or is it safe for me to use this as a learning tool? Also, there are a few regex books to be had at it-ebooks.info. But it's the same question: Is it safe to learn from those, or should I just stick to the Quick Reference guide in the AutoHotkey documentation?
Any other recommendations for learning?
Thanks in advance, for any tips.
EDIT: Actually, I see that Expresso has a setting to choose between C#, VisualBasic, Managed C++, or C++/CLI. Maybe one will be closer than the others? I know that AHK code, in general, pulls from several different languages....
I've used regex a tiny bit and am trying to learn more, for a specific project I'm working on. From what I've read, the version of regex that ahk recognizes is fairly similar to other varieties, and is based on Perl. There are a couple free tools I've found for testing regexs I make. Of course there's Regex Tester by Robert Ryan, which is designed for ahk regex testing. But there are a couple of others out there, like Expresso and The Regex Coach.
I noticed that the expression for case-insensitivity is "i)" without quotes, at the beginning of the regex. This works for ahk, but Expresso says it's an error. So that's at least one difference. Are there likely to be lots of other differences too, or is it safe for me to use this as a learning tool? Also, there are a few regex books to be had at it-ebooks.info. But it's the same question: Is it safe to learn from those, or should I just stick to the Quick Reference guide in the AutoHotkey documentation?
Any other recommendations for learning?
Thanks in advance, for any tips.
EDIT: Actually, I see that Expresso has a setting to choose between C#, VisualBasic, Managed C++, or C++/CLI. Maybe one will be closer than the others? I know that AHK code, in general, pulls from several different languages....