regexp->findPattern

Returns the find pattern.

Target member

Signature

1regexp->findPattern()

Returns the find pattern.

regexp->findPattern is called with member syntax on a receiver value. regexp->findPattern uses the regular-expression surface for pattern matching. Keep patterns small, name the intent in nearby code, and test captures separately from replacement strings.

Examples

Basic call

1regexp('[a-z]+')->findPattern
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.