Quick question: I have a regexp, ^(?:\\b[A-Z]+\\b\\s+)+(.*)\\d{8}, that gives two capture groups. I would like to replace capture group 1 with a whitespace. Is
^(?:\\b[A-Z]+\\b\\s+)+(.*)\\d{8}
Try using:
^((?:\b[A-Z]+\b\s+)+)(?:.*)(\d{8})
And replace with:
\1\2