Hey Folks,
I am trying to use regex for some validation. I am having problems where the '(|)' syntax seems to be failing.
I went so far as to copy the example out of the documentation and it in fact fails to recognize 'cat' or 'CAT'
when I try and save data on the backend.
This is the regex:
I made an attempt eliding '$' in case some how white space was the issue. It still gave me an error message.
I know this seems like an obvious one, but I figured the release might be recent enough, it just wasn't
noticed yet. I have changed core code, but only in relation to get_gravatar so that it defaults to an
identicon. It's hard to believe that is in anyway related.
I am using:
k_cms_version: 1.4.5
k_cms_build: 20150707
I am trying to use regex for some validation. I am having problems where the '(|)' syntax seems to be failing.
I went so far as to copy the example out of the documentation and it in fact fails to recognize 'cat' or 'CAT'

when I try and save data on the backend.
This is the regex:
- Code: Select all
/(cat|dog)$/i
I made an attempt eliding '$' in case some how white space was the issue. It still gave me an error message.
I know this seems like an obvious one, but I figured the release might be recent enough, it just wasn't
noticed yet. I have changed core code, but only in relation to get_gravatar so that it defaults to an
identicon. It's hard to believe that is in anyway related.
I am using:
k_cms_version: 1.4.5
k_cms_build: 20150707