Hello,
I have the string "Name: Nick" and I need to split at the ": " so I have two separate strings, "Name" and "Nick". I know how to get "Name" but I still can't find "Nick". Thanks in advacne,
Nick

What programming language are you using here? Jonas "Jackal" Lear
http://www.sbccrew.com
Serving the South Bay Since 1999
The example you gave breaks at a space, so if your file looks like this: name nick
color green:: ===== script starts here ===============
::
:: breaker.bat 2013-02-20 21:50:36.89
@echo off & setLocal enableDELAYedeXpansioNfor /f "tokens=1-2 delims= " %%a in (myfile) do (
echo.%%a
echo.%%b
)
::====== script ends here ======================================
M2 Golden-Triangle
@echo off & setlocal
set string=name: beelzebub
for /f "tokens=1,2 delims=:" %%a in ("%string%") do set tag=%%a&set value=%%b
echo tag: %tag%
echo value: %value%
