Open Olian04 opened 6 years ago
The Test constraint should always assert true and then return the regex context again, this way multiple tests can be chained.
Test
R.Regex.Test(str).True
R.Regex.Test(str)
R.Regex.Test(str).False
R.Regex.not.Test(str)
R.and([R.Regex.Test(str1).True, R.Regex.Test(str2).False])
R.Regex.Test(str1).not.Test(str2)
Pros:
Cons:
The
Test
constraint should always assert true and then return the regex context again, this way multiple tests can be chained.R.Regex.Test(str).True
R.Regex.Test(str)
R.Regex.Test(str).False
R.Regex.not.Test(str)
R.and([R.Regex.Test(str1).True, R.Regex.Test(str2).False])
R.Regex.Test(str1).not.Test(str2)
Pros:
Cons: