CALL JREPL not returning "wanted" results.... help
Posted: 11 Jan 2021 08:06
I need help.
Line1.txt contains 1 line below and is located in the same folder as my batch file.
My batch plzwork.bat is as follows:
This is what I get for Version.txt below when the script is run:
GRRRRRRRRRRR!!!!!!!
Question is, why does the output file Version.txt still contain the entire line from Line1.txt instead
of the result I want which is for Version.txt to equal a single line containing only "0.27.0" ???????
Line1.txt contains 1 line below and is located in the same folder as my batch file.
Code: Select all
<a href="/LunaMultiplayer/LunaMultiplayer/tree/0.27.0" class="muted-link css-truncate" title="0.27.0">
Code: Select all
@ECHO OFF
ECHO. %~n0: PLEASE WORK THIS TIME.
SETLOCAL DisableDelayedExpansion
CALL JREPL "([0-9]{1-3})\.([0-9]{1-3})\.([0-9]{1-3})" "" /P Regex /F "Line1.txt" /O "Version.txt"
ENDLOCAL
ECHO.
ECHO. %~n0: Press any key to quit:
PAUSE>NUL
EXIT
Code: Select all
<a href="/LunaMultiplayer/LunaMultiplayer/tree/0.27.0" class="muted-link css-truncate" title="0.27.0">
Question is, why does the output file Version.txt still contain the entire line from Line1.txt instead
of the result I want which is for Version.txt to equal a single line containing only "0.27.0" ???????