Regex match everything up to first period

Viewed 26811

Trying to get a lazy regex match of everything up until the first period of a sentence.

e.g. Just want to get "jack and jill." from this sentence:
"jack and jill. went up the hill. to fetch a pail."

/.+\./ matches the whole sentence (example)
/(.+?\.)/ matches each instance (example)

Is there a way to just match the first instance?

3 Answers
Related