How about:

 'abc123/456def/ghi'copyWithRegex: '(\d)/(\d)' matchesTranslatedUsing:
[ :each | each first asString , each third asString  ].

Not sure if that's the best way, but it seems to work.

On Thu, Oct 25, 2012 at 1:58 AM, Davide Varvello <[email protected]> wrote:
> Any regex guru? :-)
> Davide
>
>
>
> --
> View this message in context: 
> http://forum.world.st/Regex-search-and-replace-with-groups-tp4652801p4652877.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>

Reply via email to