regular expression with alternative metacharacter (General questions)

by Eiji @, (5194 days ago)

Has any one try to use regex: in Execute or WaitFor of WodSSH with alternative metacharacter (|), for example:
regex:aaa|bbb --> matches aaa or bbb

wodssh uses pcre lib that is in accordance with perl 5 regular expression.

But such above pattern does not work.

Thanks,

locked

Re: regular expression with alternative metacharac

by woddrazen @, (5194 days ago) @ Eiji

Hi Eiji,


Are you sure that this doesn't work? Seems that this works for me:
[code]wodSSH1.WaitFor ( regex:aaa|bbb )[/code]
Let us know how it goes.


Regards,
Drazen

locked