Regular Expressions are amazing but can also slow-down your AutoHotkey script. Being able to us Anchors in AutoHotkey Regular Expressions are great ways to minimize false matches and speed-up your pattern matching! The best part is they are very easy to use, just begin your search with a ^ to anchor your search at the beginning or use the $ to anchor it to the end of the line. Also don’t forget to enable multi-line as 90% of the time you’re using Anchors you’ll be wanting to treat each line as a separate entity.
RegEx 104- Anchors in AutoHotkey Regular Expressions