Shouldn't that be %Test3 OR C = %? %Test4 is not surrounded by %, so either your specification is lacking or your input is.
- deceze
What have you tried so far? You can easily test regexes online using sites like gskinner.com/RegExr
- row1
2 Answers
4
votes
Just use
%[^%]+%
Which matches a percent sign, followed by a non-zero number of non-percent characters and another percent.
0
votes
Maybe %[[:alnum::]+% would do the job?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
%Test3 OR C = %?%Test4is not surrounded by%, so either your specification is lacking or your input is. - deceze