Hello Rahul2011,
In this case you need to add a second condition to include and fieldName is not blank. This should allow users to leave the optional fields blank, but if a value is entered it will have to match your pattern.
Please let me know if you need more help.
Thanks!
Bre
Bre Huston
| Project Manager
Qdabra® Software / InfoPathDev.com / FormsQuo / 877.544.2389 main / 425.318.7843 direct
Business Process Automation for Everyone – Streamline data gathering to
turn process into knowledge.™