I can't figure out how to make a certain regex, even with the help of a regex generator.
I need to get exactly the string between (including spaces): </a>: and .
If nobody wants to get a headache over doing this, I can understand.
You would use lookaround to match this: /(?<=<\/a>: ).*(?= )/
However, JavaScript does not support lookbehind, so you are bound to be using matching groups:
var regex = /<\/a>: (.*?) /;
var match = myString.match(regex);
if (match)
return match[1];
match method
some data ": " <some string and etc. " " somedataThey want to get the whole": " <some string and etc. " "