<div dir="ltr">YAY :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 11:56 AM, Johannes Heck <span dir="ltr"><<a href="mailto:heck.johannes@gmail.com" target="_blank">heck.johannes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Replace: \n</span><br style="font-size:12.8px"><span style="font-size:12.8px">With: \\\\\n</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">works fine. As TeXWorks is able to remember the last search&replace requests, that works fine for me. No need for a script.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks, Johannes</span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-06-18 10:21 GMT+02:00 Mark Yagnatinsky <span dir="ltr"><<a href="mailto:markyag@gmail.com" target="_blank">markyag@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ignasis said what I should have said.  To be even more explicit:<br>
<br>
Replace: \n<br>
With: \\\\\n<br>
<br>
Make sure the following are checked: Regular expression, and Replace<br>
within selection<br>
<br>
And if something goes wrong, there's always Undo :)<br>
<div><div><br>
On Sat, Jun 18, 2016 at 3:35 AM, Ignasi <<a href="mailto:nignasi@gmail.com" target="_blank">nignasi@gmail.com</a>> wrote:<br>
> The search window shows an option for using "regular expressions", just mark<br>
> it and find_&_replace mechanism will support regular expressions natively.<br>
><br>
> Ignasi<br>
><br>
> El 18/06/2016 a les 1:13, Reinhard Kotucha ha escrit:<br>
>><br>
>> On 2016-06-17 at 16:41:39 -0400, Mark Yagnatinsky wrote:<br>
>><br>
>>   > why not just use search & replace?<br>
>><br>
>> This is exactly what Johannes had in mind when he said that he<br>
>> probably needs regular expressions.  The usual search & replace<br>
>> functions don't allow to specify the end of a line in the search part.<br>
>><br>
>> IMO it would be best if TeXwork's find_&_replace mechanism supports<br>
>> regular expressions natively, one way or another, without the need to<br>
>> call external scripts.  Regexps are supported by Qt, hence the<br>
>> implementation shouldn't be too difficult.<br>
>><br>
>> The difficult part is the user interface.  Since TeXworks is supposed<br>
>> to lower the barrier to entry, unexperienced users shouldn't be<br>
>> bothered with things they don't understand.  On the other hand it's<br>
>> necessary to support experienced users too.<br>
>><br>
>> Designing a good graphical user interface is always a big challenge.<br>
>><br>
>> Regards,<br>
>>    Reinhard<br>
>><br>
>>   > On Fri, Jun 17, 2016 at 7:24 AM, Johannes Heck<br>
>> <<a href="mailto:heck.johannes@gmail.com" target="_blank">heck.johannes@gmail.com</a>> wrote:<br>
>>   > > Dear TW-Users,<br>
>>   > ><br>
>>   > > I want to create a TW script that inserts a \\ linewrap at the<br>
>>   > > end of every line of a selected text.  I guess I'll have to use<br>
>>   > > some regex, but I don't now how to start...  Can anyone help?<br>
>>   > ><br>
>>   > > Thanks!<br>
>><br>
><br>
><br>
> ---<br>
> Aquest correu electrònic s'ha verificat mitjançant l'Avast antivirus.<br>
> <a href="https://www.avast.com/antivirus" target="_blank" rel="noreferrer">https://www.avast.com/antiviru<wbr>s</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>