Skip to main content
Jump to: navigation, search

Details on regular expressions as a data source

Revision as of 03:53, 16 August 2007 by S.bejakovic.gmail.com (Talk | contribs) (New page: The message batch generator can populate fields by creating text strings that match regular expressions. A regular expression is a compact syntax for describing a certain set of strings. F...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The message batch generator can populate fields by creating text strings that match regular expressions. A regular expression is a compact syntax for describing a certain set of strings. For example, the regular expression cat|dog describes the two strings cat and dog, while the regular expression cats? describes the two strings cat and cats.

The generator supports the following special operators for generating sample strings:

Expression Description
() groups the expressions inside the parentheses
+ 0 or 1 of the preceding expression
* 0 or more of the preceding expression
+ 1 or more of the preceding expression
{n,} n or more of the preceding expression
{n,m} between n and m of the preceding expression (n must not be greater than m)
[xyz] any character inside the brackets
[a-n] any character in the range
\ treat whatever comes next as an ordinary character, and not as a special operator

There is a preference page for regular expressions as a message batch generator data source.

The message batch generator requires that if you are using regular expressions as a source of data, then the total number of files must be limited (that is, on the final page of the wizard, we have to select a maximum number of files of create, instead of opting to use the entire data source).

- must limit the output - must specify infinite closure upper bound - choice strategies

Back to the top