I am trying to extract a number/word 84900 from the below string ,the keywords are HEIGHT & CM.
String s ="I am with weight 600 KG AND HEIGHT 84900 CM";
Also : If I want to extract multiple words from a string what cane be done.Say for eg2 :ITEM ORDERED AT 2030 IS 5620 POUNDS, I need to extract ORDERED , 2030,5620
Please give me a solution with java regular expression. Thanks