I have a list of IDs that I wish to extract, specifically for ID the intermediate values.
For example, the 1st ID is : garden/trade.FX.fwd/nyk12523adn
I wish to remove the values 'garden/', and '/nky12523adn', perhaps using string.replace()...
How might I do that efficiently? The starting logic would be to
- string.find('/'), to get the location
- then remove the prefix for the first '/', and suffix for the 2nd '/'
Is there an efficient way to do this?