This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Property Calculator - Rexeg

Hi everyone,

I have a question regarding "Match with RegExp" condition mode in PropertyCalculator.

I wanted to configure Error case so an error message pops up when a user enters wrong format in a certan field "IP Adress".
The correct format should be xxx.xxx.xxx.xxx. 


I tried doing so as displayed on screenshot but it doesn't seem to work.

I try with this examples:

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$

^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$

(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(\.|$)){4}

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/

  • Hi,

    I copied your configurations and tried it out myself. For me everything works as expected:

    My Error Case:

    If regex does not match, I get error message:

    In your screenshot, you have some additional conditions for error case. Could it be that some of those are not matching and thats why error does not trigger? Or could you have some additional spaces etc. in configs which make value not to match to regex? Check also that you have checked object in. If object is checked out, error cases are not triggered. (they are checked in server side)

    BR,

    Juuso

  • Thank you. I set up wrong filter condition. After i set up correct filter condition i got error raise for wrong format of IP Adress.

    BR,

    Karlo