Regex engine doesn't recognize native DOS line endings

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Aug 16, 2008
124
0
#1
The command ffind /e"^\[.+\]$" myfile.ini does not find sections ([section]) in an ini file with DOS line endings - while it will find them in the same file with Unix line endings. In comparison, the same command will find sections in ini files with DOS or Unix line endings in TCC LE.
 
#2
Same here. It was better in v19.
Code:
g:\tc19> ver

TCC  19.10.52   Windows 7 [Version 6.1.7601]

g:\tc19> ffind /v /e"^\[.+\]$" TCMD.INI

---- G:\tc16\TCMD.INI
[4NT]
[Debugger]
[BatchVariables]
[DebuggerFont]
[AliasVariables]
[EnvironmentVariables]
[FunctionVariables]
[Watch]
[HSCROLL]
[TakeCommand]
[Font]
[ListView]
[SSH]
[4MMFILE]
[Toolbar1]

  15 lines in      1 file