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

Get help with using AutoHotkey and its commands and hotkeys
A_AhkUser
Posts: 60
Joined: 06 Mar 2017, 16:18

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

18 Mar 2017, 19:55

Code: [Select all] [Download] GeSHi © Codebox Plus

MsgBox % RegExMatch("толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$")


didn't work. I tried:

Code: [Select all] [Download] GeSHi © Codebox Plus

MsgBox % RegExMatch("_толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$")


in order to make sure of my pressentiment then tried:

Code: [Select all] [Download] GeSHi © Codebox Plus

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...

Return to “Ask For Help”

Who is online

Users browsing this forum: andr3as, jebusformayor, monkey_squad, Shinobiwan and 22 guests