I'm new to RegEx and JavaScript and I was wondering if anyone knew what the RegEx would be for detecting word start Capital letter end colon:
**Example string:
const myStr=`Title: Consectetur adipiscg elit Description: Sed sit
amet eros diam Details: Vestibulum a eros ut massa interdum
consectetur Article number: AYHMNR`;
Result:
Title,Description,Details, Article number
I used:
/[:]/i
and \b[A-Z(...)].*?\b
here