I've been looking for a parameter like "AND" when using regular expressions (from boost 1.28). I need a match on "a AND is" when searching a sentence like "This is a test". Is there a way to create such a search string by using regular expressions ? Regards Mads c@medit.dk
Regular expressions match sequences of characters. Your match says to match
a string when both of 2 different matching possibilities exist anywhere in
the string. To do this you must use 2 separate regular expression matches
separating them by the normal C++ "&&" operator.
"Mads M.P."
I've been looking for a parameter like "AND" when using regular expressions (from boost 1.28). I need a match on "a AND is" when searching a sentence like "This is a test". Is there a way to create such a search string by using regular expressions ?
Thanks - then I'll just have to combine the words in seperate regular
expressions from the string created by the user. I'm working on it :)
Regards
Mads
----- Original Message -----
From: "Edward Diener"
Regular expressions match sequences of characters. Your match says to match a string when both of 2 different matching possibilities exist anywhere in the string. To do this you must use 2 separate regular expression matches separating them by the normal C++ "&&" operator.
"Mads M.P."
wrote in message news:aig3j7$u83$1@main.gmane.org... I've been looking for a parameter like "AND" when using regular expressions (from boost 1.28). I need a match on "a AND is" when searching a sentence like "This is a test". Is there a way to create such a search string by using regular expressions ?
participants (3)
-
Edward Diener
-
Mads M.P.
-
Mads M.P.