There is a string "12.2A12W99.0Z0.123Q9"
I need to find 3 groups: (double or int)(nondigit)(double or int)
So in the case of the sample, I would want this to happen:
matcher.group (1) = "12.2"
matcher.group (2) = "A"
matcher.group (3) = "12"
My current regex only matches against integers: "^(\d+)(\D)(\d+)" So I am looking to change the group (\d+) to something that will match against integers OR doubles.
I dont understand regex at all, so explaining like I'm 5 would be cool.