String stest = "Test-Test2-2.1.2";
stest = stest.replaceAll("-[\\d].*","");
Open in new window
s = s.replaceAll("-\\d.*","")
A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.
Join & Ask a Question
Join our community for more solutions or to ask questions.
For immediate help use Live now!