I am trying to parse this text:
HTop 1.1 (iPhone; iPhone OS 4.3.3)
The data I am trying to specifically extract are:
- 1.1
- iPhone
- iPhone OS 4.3.3
I can get most of the data, however the “(” keep coming into my regex results. Cant really understand why, and was hoping someone with more knowledge could help?
Thanks!!
Try a regular expression like this one:
Note that the inner brackets are excaped (
\(and\)) such that they match literally and are not included in the groups.