I would like to capture the text that occurs after the second slash and before the third slash in a string. Example:
/ipaddress/databasename/
I need to capt
/.*?/(.*?)/
In the event that your lines always have / at the end of the line:
/
([^/]*)/$
Alternate split method:
split
split("/")[2]