It always helps if you are specific. Noone enjoys a game
of "How do I do X?", "This is how you do X", "But I don't
really want to do X, I want to do Y".
So, from 1a2b3.4c5d6e, you want 123.456.
But what if you have 1a2b.3c4d.5e6f? What do
you want then?
Abigail | [reply] [d/l] [select] |
If I understand you correctly, you want to remove floating point numbers as well, together with normal integer numbers but not if they are part of a normal word (like 'HAL1'), don't you?
Then maybe you should have a look at Regexp::Common. Together with putting whitespace around the regex you should get it to work.
-- Hofmator | [reply] |