I'm looking for a non-regex solution (if possible) to the following problem:
I'd like to remove everything up to and including a particular string within a string.
So, for example, £10.00 - £20.00
becomes just £20.00
, maybe by providing the function with -
as a parameter.
I've tried strstr
and ltrim
, but neither were quite what I was after.