I get strings such as "BumpCardV2Resource.getInstance.Time" or "BumpCardWebResource.getInstance.Time" or "BumpCardResource.getInstance.Time". I need a regex expression to obtain only "BumpCardResource.getInstance"
Currently, I'm using a negative look ahead to make sure the string does not contain V2 or Web but not sure how to truncate the last 5 characters (.Time) along with that.
Regex I'm using: /^(?!.*V2|.*WebResource).*$/
PS - The resource and the API endpoint keeps changing. It need not be necessarily only BumpCard or getInstance