Regex pattern
Test patterns the way IDS uses them — XSD regex (which is mostly the same as JavaScript / PCRE for these purposes). The ^...$ anchors are usually what you want for IDS.
Sample values
One value per line. Each is tested against the pattern above; results update as you type.
Ready-to-paste IDS XML
Drop this snippet into the requirements (or applicability) block of your IDS specification. Replace the property set + base name with the values for your check.
Regex cheatsheet
The most useful pieces of regex for IDS work. Hover over any preset on the left for a real-world example using these.
^ start of line$ end of line\d any single digit (0-9)\d+ one or more digits\d{3} exactly 3 digits\d{2,4} 2 to 4 digits[A-Z] any uppercase letter[A-Za-z0-9] letter or digit(a|b|c) exactly a, b, or c.* anything (greedy)? optional (zero or one)\s any whitespace (incl. tabs)\. literal dot (period)(?:...) group without capture