Skip to content

How does the regex match operator work? #946

Closed Answered by itsanonmelody
itsanonmelody asked this question in Q&A
Discussion options

You must be logged in to vote

Currently learning BASH and stumbled upon this operator: https://tldp.org/LDP/abs/html/bashver3.html#REGEXMATCHREF

Assuming eww's regex match operator work the same, then a =~ b is equivalent to matches(a, b), where a is a string and b is a regular expression.

Is this correct?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by itsanonmelody
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant