My string being of the form:
\"as.asd.sd fdsfs. dfsd d.sdfsd. sdfsdf sd .COM\"
I only want to match against the last segment of whitespa
You can try this. It will capture the last white space segment - in the first capture group.
(\s+)\.[^\.]*$