<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"> In
this case you need the entire line unbroken, so that's why <code style="padding:1px 2px;background-color:rgb(238,238,238)">$0</code> works.
<p></p></div></blockquote><div><div><div>Good point! I had a feeling it was working by accident but couldn't spot why :-)</div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><p><br></p><span class=""><font color="#888888">
<p style="margin:2em 0px 4em">Rasmus</p></font></span><div><div class="h5">
<div>On 07/02/16 19.14, Carpii UK wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>
<div><br>
</div>
<div>Can you please help me understand what is
happening between these two expressions?</div>
<div><br>
</div>
<div>
<div>^ beginning of the line</div>
<div><br>
</div>
</div>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div>
<div>
<div>.*::.*</div>
</div>
</div>
</blockquote>
<div>
<div>
<div><br>
</div>
<div>$ end of the line</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div>^ match the beginning of the line</div>
<div><br>
</div>
<div>.* followed by 0 or more characters (apart from
newline)</div>
<div><br>
</div>
<div>:: followed by 2 literal colon characters</div>
<div><br>
</div>
<div>.* followed by 0 or more characters (apart from
newline)</div>
</div>
<div><br>
</div>
<div>
<div style="font-size:13.6px">
<div>$ followed by the end of the line (a \n
character)</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>
<div>also…<br>
</div>
<div><br>
</div>
<div>can you please tell me what the zero after the $
doing in this string?</div>
<div><br>
</div>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div>
<div>getValue( $0; 1) ;</div>
</div>
</blockquote>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>The $0 is a way of referencing one of the captures the
regular expression made</div>
<div>I'm not entirely sure this capturing syntax is right,
normally I use brackets to capture, yet it seems to work
in textmate. </div>
<div><br>
</div>
<div>We need to do this otherwise we don't know what to
output after getValue(</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word"><span>
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite">
<div>On Feb 7, 2016, at 7:29 AM, Carpii UK
<<a href="mailto:carpii.uk@gmail.com" target="_blank">carpii.uk@gmail.com</a>
> wrote:</div>
<br>
<div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Try
using a regular expression like this..</span>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://carpii.homeip.net/skitch/Find-20160207-132857.png" target="_blank"></a><a href="http://carpii.homeip.net/skitch/Find-20160207-132857.png" target="_blank">http://carpii.homeip.net/skitch/Find-20160207-132857.png</a>
<br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">The
expression is ^.*::.*$</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</span>
</div>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a>
<br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
textmate mailing list
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></pre>
</blockquote>
<br>
</div></div></div>
<br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div></div>