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

[Match Statement][RegExp]Support regex patterns within match statement for strings #1272

Open
pcnfernando opened this issue Oct 31, 2023 · 0 comments
Labels
Area/Lang Relates to the Ballerina language specification spec/improve Something that should be improved in the spec Type/Improvement Enhancement to language design

Comments

@pcnfernando
Copy link
Member

Description:
Raising to check whether as we now have data-tagged RegExp values, should this improvement be considered.

match text {
    re `pattern1` => {
        // Handle the match
    }

    re `pattern2` => {
        // Handle the match
    }

    _ => {
        // Handle cases that do not match any pattern
    }
}

Suggested Labels:

Code sample that shows issue:

Related Issues:

@pcnfernando pcnfernando added the spec/improve Something that should be improved in the spec label Oct 31, 2023
@anupama-pathirage anupama-pathirage added Type/Improvement Enhancement to language design Area/Lang Relates to the Ballerina language specification labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Lang Relates to the Ballerina language specification spec/improve Something that should be improved in the spec Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

2 participants