Please read the posting guidelines in the sticky note at the
beginning of this forum and provide as much of the requested information
as possible. In particular, what is the regex variant you are using
(they differ in their capabilities) and can we have a sample of the text
you are scanning.
What you you define as a "string" that may or may not end in "-C" or "-L"? Given, say:
hi there-c friend
would this become " friend" or "hi friend" or what?
Once
we know this, we can create a pattern that matches such as "string" and
then add '-[CL]\b' or '-(C|L)\b' or similar to it to make it match only
those that end in the specified suffix. This can then be used in a
regex "replace" operation.
Susan