How to use Regex without Case Sensitive - WeOnlyDo Discussion board

How to use Regex without Case Sensitive (wodSSH / wodSSH.NET)

by Grant Collingwood, Wednesday, August 25, 2010, 07:58 (4990 days ago)

Hi, can you tell me how we should use regex: to be case insensitive. Eg say I want to set the prompt to recognise Password: or password: how do I do the following:
Ssh1.Prompt = regex:Password:

Re: How to use Regex without Case Sensitive

by wodDamir, Wednesday, August 25, 2010, 10:25 (4990 days ago) @ Grant Collingwood

Hi Grant,

Did you try simply setting it to regex:password|Password ?

Regards,
Damba

Re: How to use Regex without Case Sensitive

by Grant Collingwood, Wednesday, August 25, 2010, 12:27 (4990 days ago) @ wodDamir

Hi Grant,

Did you try simply setting it to regex:password|Password ?

Regards,
Damba

Thanks, that seems to work