Thread: Capitalize
View Single Post
Old 03-30-2014, 07:05 AM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
@chaley: You could just use the regex engine's boundary operator.
Tried "\b(.*?)\b" and "\b(.*)\b", and they don't work. It seems that the first one should, but I didn't feel like taking the time to work it out why it doesn't.

Ahh ..., "\b(\S*)\b" does work, as does "(\S*)".
chaley is offline   Reply With Quote