hello
I need to make a check using regex inside one date field (under Joomla) but after making some test by following the regex docs I found here
[url]http://www.zytrax.com/tech/web/regex.htm
and here:
[url]http://www.regular-expressions.info/tutorial.html
..I’m always unable to find the correct one without getting an error.
In fact my goal is to check if my date field is filled with a value or not. When no value is filled, the field by default use this exact value:
0000-00-00
and in some case the field is left blank/empty (null).
So in practice I need to check if my date field contain [B]0000-00-00
If I’m not wrong for be able to use OR operator I must use the | for separate my value. So for example I tried this:
0000-00-00|
000-00-00|
000-00-00|
[0000-00-00]|
[|
but none of them let me to make this check…I get always an error.
Anybody have some suggestion to how I must write my regex??
thank