Jeff 'japhy' Pinyan writes:
[...]
> Here's a working regex:
>
>   s/(\d)(?=\d)/$1./g;

[converts 1234 to 1.2.3.4]

> The (?=\d) looks ahead for a digit, without actually consuming it.

What does that mean? Does it say, "match a digit, but always check to see 
that there is still at least one remaining ahead"? Thus avoiding "1.2.3.4." 
(dot at end)?

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]> - www.iu-bremen.de
Online Editorial Services - International University Bremen



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to