Hi Mehta,
Setting an input scope as a regular expression enables you to specify a regular expression that defines a custom pattern for restricting or biasing the input entered into the control. You can learn more about the regular expression syntax used by Microsoft Office InfoPath 2007 input scopes in the Microsoft Tablet PC Software Development Kit (SDK).
To create a regular expression input scope setting:
- Click Custom in the Input Scope dialog box, and then click New.
- In the Name box, type the name of the regular expression input scope setting.
- In the Type list, click Regular Expression.
- In the Regular Expression box, type the regular expression formula.
After a regular expression has been created in a form template, you can apply it to other controls on the form by selecting it from the Input scope list.