Thursday, December 29, 2016

Tip of the Day: Regular Expressions in DB/Variable Edit Controls
Product.......: R:BASE X/X Enterprise (Version 10)
Build.........: 10.0.2.11227 or higher
Section.......: Forms
Keywords......: Regular Expressions, Input Validation, Format

Did you know that regular expressions are now supported for Variable Edit and
DB Edit controls?

A regular expression is a sequence of characters that define a search pattern,
which can be used to validate user input. Usually this pattern is then used by
string searching algorithms for "find" or "find and replace" operations on
strings.

Within the "Effects" tab of the Variable Edit and DB Edit control properties,
a button is also available to validate the defined regular expression.

Examples:

01. The following can be used to validate an email address:

\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b

02. The following can be used to validate any phone number (e.g. 555-6592):

\d\d\d\-\d\d\d\d

Additional details regarding regular expressions and supported characters is
available within the Forms help file: "Using Regular Expressions"

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
33 years of continuous innovation!
18 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


--
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to