regular expression with alternative metacharacter - WeOnlyDo Discussion board

regular expression with alternative metacharacter (General questions)

by Eiji, Thursday, February 10, 2011, 18:46 (4846 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,

Re: regular expression with alternative metacharac

by woddrazen, Thursday, February 10, 2011, 20:04 (4846 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