pattern

abstract val pattern: Pattern(source)

Returns the pattern required to recognize this parameter, used in a larger pattern representing the entire command.

Pattern flags

  • Flags added on this pattern will not affect other options

  • If you use "embedded flag expressions" (e.g. (?i)), make sure you close them ((?-i))

  • Using flags that do not have an embedded flag expression, is not allowed, you can check if it has one from the flag's documentation

Pattern.UNICODE_CASE and Pattern.UNICODE_CHARACTER_CLASS are enabled by default.

Return

The Pattern for this parameter