Given a vairable legnth string like "4.3.25" or "1.4.3.25" I need to truncate the ".25", preserving the "4.3" or "1.4.3".
I've been using substr and length for a quick and dirty cludge, but I'd like to replace it with a single regex. Any suggestions?
In reply to Truncate string without substr or length by spivey49
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |