Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expr: add support for =* and =~ #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

msteveb
Copy link
Owner

@msteveb msteveb commented Sep 10, 2023

Adds glob match and regexp match operators to expr. e.g.

if {"abc" =* "a*"} {
  puts "matched glob" 
}
if {"abc" =~ "^a"} {
  puts "matched regexp" 
}

Is this useful enough to be included? Feedback welcome
(Needs documentation before merging)

@prpr19xx
Copy link
Contributor

I don't think it's useless, so it must be (at least somewhat) useful, so why not include it?

glob match and regexp match operators

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants