How to clean a text to return only the numeric part?

Hi,

I am trying to strip out characters that are non-numerical from an input field. For that I am trying to create a rule that I want to use in a textfield in the interface. Does anyone know how to do it?

Here is what I have that is not working so far. I created a rule named IA_RULE_removeAlphaAndSpecialCharacters which takes one input called alphaText. 

    cleanwith(
      ri!alphaText,
      "0123456789"
    )

First of the rule is not working so I am assuming it might not be the proper way to do it.

Any guidance would be appreciated.

Thanks,

Roberta

  Discussion posts and replies are publicly visible