<html><head></head><body lang="de-DE" style="background-color: rgb(255, 255, 255); line-height: initial;"> <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 width="100%" style="background-color:white;border-spacing:0px;"> <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>bralug@bralug.de</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><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><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></body></html>