View Single Post
Old 12-16-2009, 06:32 PM   #1
Blurr began at the beginning.
Posts: 11
Karma: 10
Join Date: Dec 2009
Device: none
regex search for roman numerals

I'll preface this by saying that this is the first time I've used regex.

using the expression

//h:b[re:test(., '\bX{0,2}V?I{0,3}V?X?\b')]

to search for roman numerals but it's still picking up words with an I in them like CHOICE or HOLIDAY. shouldn't the word boundry \b markers take care of that, or do they not "collapse" in when no X or V is found?

there may be a better and more efficient way to do this, but like I said, this is one of the first regex lines I've written.

Blurr is offline   Reply With Quote