If you're just trying to strip the first character regardless of what it is then SubStr(Contents, 2)
would be a much better. I know you said you weren't married to regex, but if you wanted to do the same with regex you would do 's)^.'
, per the documentation the "s" option makes the "." character include newlines and it's related characters. By default for some reason Autohotkey's regexes exclude newlines from the ".".
this post was submitted on 25 Jun 2025
5 points (100.0% liked)
AutoHotkey
192 readers
1 users here now
founded 2 years ago
MODERATORS
Oh, man, I totally didn't know or must've forgotten about SubStr()
all this time! Thanks, that does the trick!!