Appendix C: Regular Expressions in AgileLoad

This section explain the regular expression syntax used in AgileLoad.

The following table shows the regular expression special characters and their signification:

 

 . The '.' character will match any single character.
  • a.c will match abc, afc, aec, ...
 ^ The '^' character will match a start of a line.
 $ The '$' character will match an end of a line.
 * The '*' character will match the preceding character zero or more times.
  • a*cd will match cd, acd, aaaacd, ...
 + The '+' character will match the preceding character one or more times.
  • a+cd will match acd, aaaacd, ..., but NOT cd
 ? The '?' character will match the preceding character zero or one times.
  • a?cd will match cd and acd but NOT aacd
 | The '|' character will match either of its arguments:
  • abc|def will match abc and def
  • a(bc|d)ef will match abcef and adef
 [] The '[]' characters are used to define a set of characters.
'-' can be used inside brackets to define a range of characters.
'^' used as the first characters inside brackets define the complement of the character set:
  • a[bcd]ef will match abef, acef and adef
  • a[b-d]ef will match abef, acef and adef
  • a[b-d]+ef will match abbbef, abcbdcdef, ...
  • a[^b-d]ef will match aaef, axef, asef, ..., but NOT abef, acef, adef
 {} The '{}' characters are used to specifies the number of times a character must be repeated:
  • ab{3}c will match abbbc
  • ab{3,5}c will match abbbc, abbbbc and abbbbbc
  • ab{3,}c will match abbbc, abbbbc, abbbbbbbbc, ...
 \ The '\' character can be used before special characters to makes them match themselves:
  • a\\bc\* will match a\bc*
 

 





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap