I have the below string and regex. However I cant understand why it works the way it does. IP has been changed for safety
String = NowSMS Error Report. Error initializing SMSC Interface 'SMPP - 10.15.8.10:17600'. Interface is not available.
Regex = (.+\.)\s(.+)
I get two backreferences as expected.
Group 1: NowSMS Error Report. Error initializing SMSC Interface 'SMPP - 10.15.8.10:17600'.
Group 2: Interface is not available.
Question:
Why doesn't group 1 = NowSMS Error Report. <------ stopping at first period