Regex
AKIPS API requires that:
- all regex strings be enclosed within
/ /(forward slashes) - regex that contains spaces also be enclosed within
" "(double quotation marks).
To negate regex, use the following syntax:
/!{regex}/
Be precise with your syntax so that it performs quickly and efficiently.
E.g. /^NewYork-Router/ is faster than /NewYork-Router/ because it specifies
that the start of the match must begin with NewYork-Router.
Regex filters
You can use regex to filter data in Dashboards and Reports
Examples: Must match akips09 or akips134:
/akips09|akips134/
Must match AKDSQ, AKDSI, AKDPR, MSD or EIA:
/AKDSQ|AKDSI|AKDPR|MSD|EIA/
Match anything with SD followed by any number from 4 to 9:
/SD\[4-9\]/
Match anything that starts with fa or gi and only those from 0 to 5:
/^(fa|gi)[0-5]/
Check your regex:
Go to Tools > Regex Checker. Paste sample text into the text field.
Type the regex you want to check, without / / (forward slashes), into
the Regex text field.
Click Test Regex.