How do I use regular expression to match the last character of a sentence?
이전 댓글 표시
I want to use regular expression to match the last character of a sentence as ".", "!" or "?". A sentence that has any of these characters as the last character is to be copied into a file for further processing.
댓글 수: 4
Jos (10584)
2014년 2월 25일
Are there other symbols that act as delimiter between sentences?
Jos (10584)
2014년 2월 25일
Ans how are these sentences stored? In a single char array with delimiters? May be you can give a short example?
Walter Roberson
2014년 2월 25일
English can be ambiguous about where sentences end, in that it uses "." for abbreviations as well as for ending the sentence.
"Sing, Mr. Prefect, sing Row Row Row, etc., and dance as you do."
The "." after "Mr." does not end the sentence, and neither does the "." after "etc" .
Adekunle Obasa
2014년 2월 26일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!