I have this String 2 Intel(R) Itanium(R) Processor 9320s (1.66 GHz, 16 MB) I need to get 1.66 GHz which could be any thing a clock speed has like 1600 MHz or 1.33 GHz etc
Any Help?
I was trying something like \b\([\d\s\w\.]*,\b Please give your suggestions
You can use this regex with Pattern class:
It will search for a decimal number, followed by optional spaces, and an optional multiplier (I use any character in the regex – since I only need to match it), and ends with “Hz”.