Hi All,
I would like to search the message with regular expression from linux login message: message:/Accepted password for (xxx|yyy)/ but failed. It work perfectly without dealing with space. No matter what any possible wildcard pattern I used.
/Accepted/ - works
/(xxx|yyy)/ - works
/Accepted\spassword\sfor\s(xxx|yyy)/ - not work
/Accepted.+password.+for.+(xxx|yyy)/ - not work
/Accepted.+password.+for.+(xxx|yyy).+/ - not work
…
Thx for any comment !