I am trying to write a regular expression to be used with javascript.
This regex should be able to match everything between number + space + capital letter.
Here is an example:
var string = testtesttesttesttest1 This shuld be matched2 This shuld also be matched3 fdsfsfsd
From this string, I would like to get
[0] = 1 This shuld be matched
[1] = 2 This shuld also be matched
I have tried this regex:
(?<=\d)(.*)(?=[A-Z])
But I can’t find the one I need. Here is the example http://regexr.com?31reo
Thank you very much.
1 Answer