Answer the question
In order to leave comments, you need to log in
How to set a regular expression for the first letter in a sentence?
I have a sentence
this text has two sentences. good fortune.
It is necessary through a regular expression to capture the first letter of the word this and the first letter of the word good in each sentence (it is guaranteed that the letters are lower case)
Answer the question
In order to leave comments, you need to log in
/^[az]|(?<=\.\s*)[az]/gm
if the dialect does not allow, can be divided into groups
/^([a-z])|\.\s*([a-z])/gm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question