How to split string with the delim=string E.g:
split string
"sssssMssssMYSTR___M___MYSTRzzzzzzMzzzz"
by
delim="MYSTR"
and result should be:
sssssMssss
___M___
zzzzzzMzzzz
Such code
for /f "tokens=1,2 delims=MYSTR" %%A in ("sssssMssssMYSTR___M___MYSTRzzzzzzMzzzz") do (
set fn1=%%A
)
doesn't work/ It splits only using first letter by 'M'
How to split by word?