We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you have an AnythingBut followed by a Maybe assuming the value of Maybe isn't the value of AnythingBut then the Maybe should be ignored.
AnythingBut
Maybe
For instance the two following are semantically the same:
var verbEx = VerbalExpressions.DefaultExpression .StartOfLine() .Then( "http" ) .Maybe( "s" ) .Then( "://" ) .Maybe( "www." ) .AnythingBut( " " ) .EndOfLine();
var verbEx = VerbalExpressions.DefaultExpression .StartOfLine() .Then( "http" ) .Maybe( "s" ) .Then( "://" ) .Maybe( "www." ) .AnythingBut( " " ) .Maybe("/") .EndOfLine();
Both of the above should output ^(http)(s)?(://)(www\.)?([^\ ]*)$ because the AnythingBut is greedy and will capture whatever is in the Maybe.
^(http)(s)?(://)(www\.)?([^\ ]*)$
The text was updated successfully, but these errors were encountered:
Solved issue "AnythingBut followed by a Maybe should be ignored Verba…
6b84cc9
…lExpressions#23" with a flag.
No branches or pull requests
When you have an
AnythingBut
followed by aMaybe
assuming the value ofMaybe
isn't the value ofAnythingBut
then theMaybe
should be ignored.For instance the two following are semantically the same:
Both of the above should output
^(http)(s)?(://)(www\.)?([^\ ]*)$
because theAnythingBut
is greedy and will capture whatever is in theMaybe
.The text was updated successfully, but these errors were encountered: