Hello, any RegEx guru here?
I wanted to add a custom validation to a text field for IBAN and BIC. I found misc RegEx snippets on the web. One source is here: Examples
I tried the following example from mentioned URL:
All IBAN check
[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}
In regards of Cobalt it just works fine by copying and pasting in the respective field parameter :)
Related Question
Now i wanted to use the same validation in CB / CommunityBuilder text field. Actually I am pretty firm in CB, but never used the custom RegEx validation. It is slightly different to Cobalt, and the tooltip shows a simple example and syntax i.e.:
Simple check for "only numbers". Hence the pre- and suffix part:
/^[0-9]*$/
How does this apply to my IBAN example?! I tried to modify and add it like so:
/^[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}*$/
It does not work. :(
Am I totally wrong? Any clue or help is appreciated.
Hello, any RegEx guru here?
I wanted to add a custom validation to a text field for IBAN and BIC. I found misc RegEx snippets on the web. One source is here: Examples
I tried the following example from mentioned URL:
All IBAN check
In regards of Cobalt it just works fine by copying and pasting in the respective field parameter :)
Related Question
Now i wanted to use the same validation in CB / CommunityBuilder text field. Actually I am pretty firm in CB, but never used the custom RegEx validation. It is slightly different to Cobalt, and the tooltip shows a simple example and syntax i.e.:
Simple check for "only numbers". Hence the pre- and suffix part:
How does this apply to my IBAN example?! I tried to modify and add it like so:
It does not work. :(
Am I totally wrong? Any clue or help is appreciated.