"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Joined: Nov 06, 2000
Nope. Here are the results of running your guess:
Having "rumplestilskinB-aa" be a match is still not the behavior I want.
I have made lots of guesses myself, but none has explained what appears to be a fundamental mis-understanding on my part. (I suspect the hypen is the problem. In some contexts a hyper is a range operator. I'm afraid my pattern somehow is matching anything in the range "B" through "aa". The problem with that theory is that if it's true the "-" shouldn't be required in the matching string, so "Baa" should test "true" also, but it doesn't. But I still suspect the hyphen.)
I need the help of someone who knows either regex in general or Jakarta regexp in particular.
Actually, when I said "I'm not experienced with regex," I should have said "I'm not (very) experienced with regex in Java."
But I have been using a form of regex for years with a product called Hyper.Ink, which is an application that converts rich text source material into Lotus Notes documents. Basically, we use regexes to define "link rules" so that Hyper.Ink can convert specific text patterns into hyperlinks among the databases.