Hi there,
 I'd like to remove a slash from a string like this one: 'abc123/456def/ghi'
The resulting string should be 'abc123456def/ghi' that is only slashes
surrounded by numbers should be removed.

I tried with regex and group, using something like:

'abc123/456def/ghi'copyWithRegex: '(\d)/(\d)' matchesReplacedWith: '$1$2'

but of course it doesn't work, dollar sign doesn't identify the group, sigh.
Have you any suggestion?

Cheers
 Davide



--
View this message in context: 
http://forum.world.st/Regex-search-and-replace-with-groups-tp4652801.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to