Match number after a specific word and colon with a space.
If I have a line in an email body like
Reference number: 132
Company reference number: 123
How can I just match 123?
I tried using regex but only came up with something that matched number: 123.
Is regex the best/fastest way anyway?
The string will come from the body of an email, and normally I could just say
But I need to cover any scenario where it's just going to end with "number: "
var refNumber = email.body.reference_number;