A few examples
First, the use of captive ()
For example, 0.23
1、(^\d+)(\.)(\d{0,2})
Regular expressions 3 () is generated using the 3 match packets
2、^\d+\.\d{0,2}
No (), no packet
Second, the non-captive (? :)
(?:^\d+)(\.)(\d{0,2})
The first group is no longer capture