Thread: Regex examples
View Single Post
Old 11-18-2014, 11:36 AM   #433
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Buchstabensalat View Post
1. neWbie or nEwBie -> newbie
Find:([[:alpha:]]+)
Replace:\L\1\E

Quote:
Originally Posted by Buchstabensalat View Post
2. NeWbie or NEwBie -> Newbie
Find:([[:upper:]])([[:alpha:]]+)
Replace:\1\L\2\E

Note that these expressions will also find some non-mixed case words and won't work with accented characters and umlauts.

You can find more examples here.
Doitsu is offline   Reply With Quote