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 like so:
(\s+)(?=\.[^.]+$)
(?=\.[^.]+$) Positive look ahead for a dot and characters except dot at the end of line.
(?=\.[^.]+$)
Demo:
https://regex101.com/r/k9VwC6/3