Source https://www.youtube.com/watch
/A(B|C+)*DE?/.test('ACCCCCCCCCCCCCCCCCCCCCCCCCCCCC')
/A(B|C+)*DE?/.test('ACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC')
/A(B|C+)*DE?/.test('ACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC') // Do not run me!
More references:
https://stackoverflow.com/questions/29751230/regex-pattern-catastrophic-backtracking