Regex for 4th word

Contracted Service ProviderBMC HEALTHNET PLAN COMMUNITY ALLIAN

Contracted Service ProviderTUFTS HEALTH TOGETHER WITH CHA

BMC is 4th word but their is no space between provider and bmc, I want 4 word
from Second i want TUFTS

@ashishmani - Please try this…

1 Like

You wrote two samples which begins with “Contracted Service Provider”.

Contracted Service ProviderXXXX

Is it always like this? If yes, is easy, don’t even require a regex.

sample.Replace("Contracted Service Provider", "").Split(" "c)(0)

Otherwise, I don’t think that there is a reliable regular expression to do it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.