0

Can someone help me create a Regular expression which will find the number of times a certain string was found in a URL. Example, i have a list of URLs

//www.example.com/java/javajobs

//www.example.com/R/Rjobs

//www.example.com/dotnet/dotnetjobs

I would like a regex to count the number of times dotnetjobs and Javajobs appeared in the URLs above, so in this case, it should give out the result as 2

Appreciate your help.

0 Answers0