Thread: Regex examples
View Single Post
Old 07-18-2017, 01:11 PM   #522
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,071
Karma: 1931746
Join Date: Nov 2009
Device: many
So after the roman numerals all you want to allow is whitespace or punctuation (.,) is that right? If so couldn't you can add them as [\s.,]+ at the end? You might want to include single and double quotes as well and even an exclamations point such as Louis XVI! LouisXVI. etc.

If you really want anything other than a lowercase letter you could add [^a-z] or something along those lines to negate the set.
KevinH is offline   Reply With Quote