A Pattern to extract all instances of allowed characters.
RegExp with multiple groups is not supported.
final Pattern whitelistedPattern