<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Hello
again, </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Sorry for opening
again this topic. The second chstring command worked perfectly, but I tried
again the 1rst. one </span><i><span style="font-size:7pt;line-height:115%;font-family:Arial,sans-serif;color:rgb(255,38,0);border:1pt none windowtext;padding:0cm;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">chstring +s"\**"
"\**%aaa:\t\n" -w +1 *.cha</span></i><span lang="EN-US"> and it didn’t give me the output I was looking for. It gave me:</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">\</span><span style="font-size:12pt;font-family:Arial,sans-serif">namesubject: sentence .</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">*</span><span style="font-size:12pt;font-family:Arial,sans-serif">%aaa:</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif">That it, it
introduces a <i>\</i> before the participants’
name, it supresses the <i>*</i> and writes the
<i>*</i> before the name of the dependent
tier. </p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">I’ve been
trying to execute the command chstring in CLAN, looking for the most suitable
regular expression to be replaced. I searched the expression “period followed
by an endline” to replace it for that same one plus %aaa, that is, <i>.\n</i>,
and I wanted to replace it for <i>.\n%aaa</i>,
executing the next command: </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><i><span lang="EN-US">chstring +s".\n" ".\n%aaa –w +1 </span></i></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">But it
doesn’t replace it. I believe that the search function in CLAN can’t search the
endline using \n, although it works when that is what’s replaced. Is that so?</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">The easiest
solution I found is doing the replacement using an editor, but I am really
curious about it and I wanted to ask if that’s the case. </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">On the
other side, using the editor to do the replacements, it also happened that *
before the participant’s name was erased, so for some reason I had to replace
it for the same expression + the dependent’s
tier + an asterisk at the end because this one was erased. </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> </span><span style="font-size:11pt">Thank you
in advance and thank you for your help.</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Regards, </span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> </span><br></p></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div style="color:rgb(136,136,136)"><font color="#444444"><b>---</b></font></div><div><font face="arial, helvetica, sans-serif"><b><font color="#666666">Remei González Manzanero</font></b></font><br><a href="mailto:remeigonzalez@gmail.com" style="color:rgb(17,85,204);font-size:12.8px;font-family:arial,helvetica,sans-serif" target="_blank"><img src="http://www.google.com/a/help/intl/en/images/red_M_icon.gif"> remeigonzalez@gmail.com</a><span style="color:rgb(136,136,136);font-size:12.8px;font-family:arial,helvetica,sans-serif"> </span><font color="#444444" face="arial, helvetica, sans-serif" style="color:rgb(136,136,136)"><b><br></b></font></div></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:gray">PhD Student</span></p>
<div><span style="color:gray;font-family:Calibri,sans-serif;font-size:11pt">Universitat de Barcelona<br></span><a href="https://www.linkedin.com/in/remeigonzalez" style="font-family:arial,helvetica,sans-serif;font-size:12.8px" target="_blank"><img src="https://docs.google.com/uc?export=download&id=19SSmQ1OjD8s06a3v5FtfPYPJ6TITJU4y&revid=0B2TJQMqQ6r_5MXpTbmU2d1JVcEhLNkNudjVDRk9QU21RdDBrPQ"></a> <span style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><a href="https://twitter.com/remei_go" style="font-family:arial,helvetica,sans-serif;font-size:12.8px" target="_blank"><img src="https://docs.google.com/uc?export=download&id=1mMuQBjK7-_QOBv-SGlpAVYA71dnH366-&revid=0B2TJQMqQ6r_5UXh2MWl0aUNsWWRodG83R3hMN0djR3lsVmhVPQ"></a> <br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 14 nov. 2019 a las 11:25, Remei González Manzanero (<<a href="mailto:remeigonzalez@gmail.com">remeigonzalez@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div>Hello,<div><br></div><div>I'll go with the CHSTRING command this time, is perfect, it worked, and for future more complex cases I'll go with SublimeText or simmilars. </div><div><br></div><div>Thank you very much, </div><div><br></div><div><br></div><div>Remei</div><div><br></div></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "chibolts" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/8ea4f74f-e112-49c4-a6cd-948770f09643%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/chibolts/8ea4f74f-e112-49c4-a6cd-948770f09643%40googlegroups.com</a>.<br>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/CADc74BjxhFoiRrRJmk7e3awGR8RzrcBRG5e1Pp11dEQ4wNocPA%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/CADc74BjxhFoiRrRJmk7e3awGR8RzrcBRG5e1Pp11dEQ4wNocPA%40mail.gmail.com</a>.<br />