I'm trying to retrieve the last 3 words of a string using regex.
The string - "From the place on July 19, 2019"
I need to extract only the date part 'July 19,2019'.
I tried the below ways :-
(\w{3})$ # gives last 3 letters of the last word
([,0-9]{3})$ # gives last 3 digits from the last word
(?:\w+\s*){1,3}$ # retrieves only the last word
None of them gives me the last 3 words.