1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Regex engine doesn't recognize native DOS line endings

Discussion in 'Support' started by thorsten, Sep 29, 2016.

  1. thorsten

    Joined:
    Aug 16, 2008
    Messages:
    124
    Likes Received:
    0
    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. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,059
    Likes Received:
    30
    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
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,023
    Likes Received:
    84

Share This Page