-
Notifications
You must be signed in to change notification settings - Fork 3
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
Syntax for RegexString
flags?
#5
Comments
I didn't implement flags, because they are not spliced into the regex string like the other things are. But I think you could just pass the flags at the moment where you convert the RegexString into the actual Regex. Aren't the flags keyword arguments to the Regex constructor? Maybe I should think about how to add a more convenient method for flags |
The thing is,
capture(
either(
rs"A",
"b",
"c",
);
as = "X",
) *
rs"\h*d =\h*" *
NUMBER *
rs", a" *
NUMBER where |
Yeah I could add a regex constructor with flags. I don't understand the other question, what are you trying to do? \s is any whitespace, not specifically a newline |
That's why I am using this package 😂. I am not very familiar with regexes, so I need to build regexes with code. |
Maybe you can describe what you're trying to match, and I can help you what the best syntax would be? |
Just consider any multiline matching, or ignoring the case matching. |
How to write multiline / case-insensitive / single line, etc.,
RegexString
? Just like what's provided inRegex
?The text was updated successfully, but these errors were encountered: