Reputation: 141
I want to use regex sql to remove all the letters after decimal, like A26.5 H to A26.5, A26.5GH to A26.5, how can I use regex ?
Upvotes: 0
Views: 142
Reputation: 10466
You may use this regex in java for each target string:
^([A-Za-z]*\d+(?:\.\d+)?)[\sa-zA-Z]*$
and replace by
$1
Upvotes: 1