Hepl RegExMatch match after a newline at the very end of Haystack Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
Location: France
Contact:

Hepl RegExMatch match after a newline at the very end of Haystack  Topic is solved

18 Mar 2017, 19:55

Code: Select all

MsgBox % RegExMatch("толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$")
didn't work. I tried:

Code: Select all

MsgBox % RegExMatch("_толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$")
in order to make sure of my pressentiment then tried:

Code: Select all

MsgBox % RegExMatch("толочь", "m)^.+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$")
which doesn't work either. documentation says:
Circumflex (^) matches immediately after all internal newlines -- as well as at the start of Haystack where it always matches (but it does not match after a newline at the very end of Haystack).


How to match after a newline at the very end of Haystack?

thanks ;)

EDIT: my mistake I figure it out it was a fault of + sign...
my scripts

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 257 guests