Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String body = "You have bought USD 1.00 Whatsapp for 784024487. Your new wallet balance is USD 1.04. Happy Birthday EcoCash for turning 7years. Live Life the EcoCash Way.";
- String regex="([0-9]+[.][0-9]+)";
- Pattern pattern=Pattern.compile(regex);
- Matcher matcher=pattern.matcher(body);
- while(matcher.find())
- {
- String detail = "Airtime";
- transUtilsList.add(new TransUtils(detail,+matcher.group(),matcher.group()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement