[tpm] quicky regex question
Fulko Hew
fulko.hew at gmail.com
Wed Sep 22 11:45:26 PDT 2010
On Wed, Sep 22, 2010 at 2:34 PM, Emil Janev <ejanev at gmail.com> wrote:
> Hi Fulko,
>
> I tried this one, and I think it gives the same result:
>
> 44.
>
> If it was working for you, was it maybe:
>
> /^((\d*\.){$n})/
>
> This one gives:
>
> 00.99.88.77.66.55.44.
>
Yup... transcription error in my second email.
>
>
>
>> Nevermind... that neuron finally decided to fire!
>> The answer is an extra set of 'capture'. Ie.
>>
>> /^((\d*\.)){$n}/
>>
>>
>> _______________________________________________
>> toronto-pm mailing list
>> toronto-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/toronto-pm
>>
>>
>
>
> --
> Emil Janev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100922/4bca03a4/attachment.html>
More information about the toronto-pm
mailing list