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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…