Consider the example string below:
“And is it possible to foster reconc-
iliation and peacebuilding?”
I would like to match the the token reconc-iliation.
Something like """(?m)\b[^\s]*\-$""" matches recon- but """(?m)\b[^\s]*\-$^[^\s]*\b""" does not match reconc-iliation.
This would work
UPDATE
^–> matches start of line/ or start of string (depending on usingsswitch)$–> matches end of line/ or end of string (depending on usingsswitch)\b–> matches an word boundary\r–> Carriage return\n–> New lineOnly windows uses both
\rand\nas line separator.