5
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 25 Jun 2025
5 points (100.0% liked)
AutoHotkey
193 readers
1 users here now
founded 2 years ago
MODERATORS
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 ".".Oh, man, I totally didn't know or must've forgotten about
SubStr()
all this time! Thanks, that does the trick!!