Home

Add a comment

 

Re: A really simple but powerful rule engine

Hi Ravikiran, Last night I found out that MVEL does support regular expressions. I'll check some new tests in tonight, which show exactly how it works. In the mean time, from memory, try something like this:
    input.name ~= '[a-zA-Z]*'
That rule is only true if the name of the input object contains just characters. I have working tests for MVEL and JavaScript, but I can't check them in until tonight I'm afraid. I'll update when I do that.

Re: A really simple but powerful rule engine


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).