<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Moin,</p>
    <p>hmm, so ähnlich hatte ich es bei meinen Versuchen auch schon
      gedeutet, aber da wird der ganze Rest bis EOF weggerammelt...</p>
    <p>Tcl:</p>
    <p>set data "yyyyWindows98\n\rdas ist die naechste Zeile\n\r"<br>
      puts $data<br>
      regsub Windows.*$ $data Linux data<br>
      puts $data<br>
    </p>
    <br>
    Stdout:<br>
    <br>
    yyyyWindows98<br>
    das ist die naechste Zeile<br>
    <br>
    yyyyLinux<br>
    <br>
    <br>
    Es müsste noch "das ist die naechste Zeile" (auf einer neuen Zeile
    etc.) erhalten bleiben :-(...<br>
    <br>
    Grüße Uwe<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 13.02.2018 um 16:44 schrieb Ingo
      Schaefer:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180213154411.6119510.18141.16365@ingo-schaefer.de">
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Hallo
        Uwe,</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Normalerweise
        matcht $ auf das Zeilen-Ende.</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Ein
        s/Windows.*$/Linux/g sollte so eine Expression sein.</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Ob
        die in der TCL-Variante auch so funktioniert, kann ich mangels
        passender technischer Mittel gerade nicht ausprobieren. (kurz:
        mag jetzt auf dem Bahnsteig den Laptop nicht herauskramen)</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Liebe
        Gruesse,</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);">Ingo</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125);
        text-align: initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="font-size: initial; font-family: Calibri, 'Slate Pro',
        sans-serif, sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);">Gesendet von meinem BlackBerry 10-Smartphone.</div>
      <table style="background-color:white;border-spacing:0px;"
        width="100%">
        <tbody>
          <tr>
            <td colspan="2" style="font-size: initial; text-align:
              initial; background-color: rgb(255, 255, 255);">
              <div style="border-style: solid none none;
                border-top-color: rgb(181, 196, 223); border-top-width:
                1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB
                Alpha Sans', 'Slate Pro'; font-size: 10pt;">
                <div><b>Von: </b>Uwe Berger</div>
                <div><b>Gesendet: </b>Dienstag, 13. Februar 2018 16:39</div>
                <div><b>An: </b><a class="moz-txt-link-abbreviated" href="mailto:bralug@bralug.de">bralug@bralug.de</a></div>
                <div><b>Antwort an: </b>Die BraLUG-Mailingliste</div>
                <div><b>Betreff: </b>[BraLUG] Hilfe bei Regular
                  Expression</div>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <div id="_originalContent" style="">
        <div style="font-family: Verdana;font-size: 12.0px;">
          <div>MoinMoin,</div>
          <div> </div>
          <div>ich bin kein Regexpr-Experte und brauche eure Hilfe bei
            einer solchen. Höchstwahrscheinlich ist die auch recht
            trivial für einen Profi...</div>
          <div> </div>
          <div>Vorab ein Hinweis, das Ding soll später mit dem
            Tcl-Befehl "regsub" funktionieren... (irgendwie habe ich in
            Erinnerungs das RegExpr nicht gleich RegExpr ist...?)</div>
          <div> </div>
          <div>Also ich möchte aus einem Text zeilenweise(!) alle
            Zeichenketten ersetzen, die dem Suchstring entsprechen und
            von dort dann aber auch alles was hinter dem Suchstring
            kommt bis zum Zeilenende. Das Zeilenende soll erhalten
            bleiben. Das Zeilenende ist Windows-like, also CRLF.</div>
          <div> </div>
          <div>Beispiel:</div>
          <div> </div>
          <div>Suchstring: Windows</div>
          <div>Ersetzung: Linux</div>
          <div> </div>
          <div>xxxxWindowsXP              --> xxxxLinux</div>
          <div>blablaWindows Vista        --> blablaLinux</div>
          <div>und auch WindowsNT      --> und auch Linux</div>
          <div>Windows10                     --> Linux</div>
          <div>auch Windows\98            --> auch Linux</div>
          <div> </div>
          <div>Zu letzten Beispiel: es kann auch ein Backslash im
            Ausgangstext vorkommen...</div>
          <div> </div>
          <div>Hat jemand einen Tipp?</div>
          <div> </div>
          <div>Grüße & Danke Uwe</div>
          <div> </div>
          <div> </div>
        </div>
        <br>
        <!--end of _originalContent --></div>
    </blockquote>
    <br>
  </body>
</html>