Regular Expression Syntax

The information in this article applies to product: e-Work   5.x 6.x

Issue

  • An entry in a field using a mask is accepted in the web client but not in the Win32 client.

Resolution

  • Here is an example. If you have the mask \[A-Z\] on a field, entering "AA" will be accepted in the web client but not in the Win32 client. This is because all masks are assumed to be searches for an exact match in the Win32 client. In the web client, which relies on the Microsoft Regular Expression Object, it will return true for any match within that text.
  • To make the mask function the same with both clients, it is necessary to be more rigorous in syntax. Adding a '^' and '$' to the beginning and end of the mask, respectively, will ensure that both clients respond the same.
  • See the following sites for more information on regular expressions:

    http://www.regexplib.com/
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/ab0766e1-7037-45ed-aa23-706f58358c0e.asp

Tagged: