If I have a variable string 'testawzoid' , which could have anything before "zoid", how do I remove everything before "zoid" regardless of what comes before "zoid".
It could also be "testaxzoid" or "testaanythingzoid" , I just want to keep "zoid"
I have looked at regex and trim etc with no luck. Can anyone point me int the right direction please? Thanks!
Olafpointed out, your description makes no sense. [grin] just replace the string with the string you want. ///// however, i presume you are actually wanting something else, would you please give two or three realistic samples and what result you want from each?$stringVar -replace '.*(?=zoid)'