Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

How to check if the match succeeded? #74

Open
packetq opened this issue Sep 19, 2021 · 1 comment
Open

How to check if the match succeeded? #74

packetq opened this issue Sep 19, 2021 · 1 comment

Comments

@packetq
Copy link

packetq commented Sep 19, 2021

Hi,

I'm fairly new to go and I'm having a hard time following the source. How can I determine if the regex match of the "Expect" function succeeded?

Thanks,
-G

@haiboumich
Copy link

use Verbose Option like below:

e, _, err := expect.Spawn("your command", -1, expect.Verbose(true))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants