Oct. 25, 2012
7:17 a.m.
:-) yep, Peter, it works. I was looking for something semantically related to grouping, but your solution do the stuff Thanks Davide Peter H. Meadows wrote
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.
-- View this message in context: http://forum.world.st/Regex-search-and-replace-with-groups-tp4652801p4652891... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.