I have a string with a different variety of strings of different lengths
Example:
/my-big-property/Residential/Sections-for-sale
/my-big-property/Residential/for-sale
I am wanting to only remove /my-big-property/ but because substr does not seem to work what other options do I have?
Can you explain further by
substrdoesn’t work? This seems like an awfully simple problem.If the initial string between the first
/and second/is variable, then regex such as this would suffice:This would output: