Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 2.3 KB

StringValues.md

File metadata and controls

41 lines (33 loc) · 2.3 KB

String-Var Dynamic Values

WIP!

Currently, the best guide is from the XMT Matcher Verb Guide, which is copied below.

Matcher Verb Guide

  • <N> indicates a non-negative number value that is REQUIRED.
  • [N] indicated a non-negative number value that is OPTIONAL. If omitted, a random positive 8 to 32bit value will be used.

If the number is followed by a f, this will FORCE the count and will use it directly instead of a range to N. Otherwise, a [1, N] (inclusive) value will be generated to be used instead.

In both cases, the <, [, ], and > are only used to indicate usage, and are not actually used in the string value.

Verb Description RegEx
%n 1 to N count of random single-digit numbers [0-9]{1,N}
%fn N count of random single-digit numbers [0-9]{N}
%c 1 to N count of random ASCII non-number characters [a-zA-Z]{1,N}
%fc N count of random ASCII non-number characters [a-zA-Z]{N}
%u 1 to N count of random ASCII uppercase characters [A-Z]{1,N}
%fu N count of random ASCII uppercase characters [A-Z]{N}
%l 1 to N count of random ASCII lowercase characters [a-z]{1,N}
%fl N count of random ASCII lowercase characters [a-z]{n}
%s Random 1 to 256 count of random ASCII characters ([a-zA-Z0-9]+)
%[N]s 1 to N (or random) count of random ASCII characters [a-zA-Z0-9]{1,N}
%fs N count of random ASCII characters [a-zA-Z0-9]{N}
%d String literal number 0 to 4,294,967,296 ([0-9]+)
%d String literal number 0 to N ([0-9]+)
%fd String literal number N ([0-9]+)
%h Hex string literal number 0 to 4,294,967,296 ([a-fA-F0-9]+)
%h Hex string literal number 0 to N ([a-fA-F0-9]+)
%fh Hex string literal number N ([a-fA-F0-9]+)

All other values are ignored and directly added to the resulting string value.