How can I convert a Perl regular expression to work with Boost :: Regex?

What is the Boost :: Regex equivalent of this Perl regular expression for words that end in ingor edor en?

/ing$|ed$|en$/

...

+3
source share
2 answers
/^[\.:\,()\'\`-]/

should become

"^[.:,()'`-]"

Perl / ++, . , (\\ \ ). , , , .

; , Perl (, lookbehind) Boost. , . . . .*[0-9].* , -, all numbers.

+2

, ++ , (, \w \d ("\\w" "\\d")

+3

Source: https://habr.com/ru/post/1738955/


All Articles