You should use:
/(\d{4})cc\b/
\b ensures that "cc" is at the and of the word.
5
solved How to use regex to get the numbers out of this type? [closed]
You should use:
/(\d{4})cc\b/
\b ensures that "cc" is at the and of the word.
5
solved How to use regex to get the numbers out of this type? [closed]