Thread: a little help
View Single Post
Old 08-11-2022, 01:40 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 50,800
Karma: 178402710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sarmat89 View Post
You should use \p{Ll} instead of [a-z], though.
I thought that [a-z] would be a bit clearer that I was matching lower case letters at the start of a line. \p{\p{Ll}} matches a lower case letter that has an upper case equivalent and as far as I am aware, Italian lacks lower case letters that don't have an upper case equivalent. Even German now has an upper case ẞ (since 2017???).

Edit: Mostly a question of style and evidence that if there is more than one way to do something, they will all be used.

Edit2: As pointed out, [a-z] does not catch accented letters. Me bad!

Last edited by DNSB; 08-11-2022 at 04:06 PM.
DNSB is offline   Reply With Quote