# P_regex
## Syntax:
@regex**({pattern}, {text})**
## Use Case:
Tests if a regular expression pattern matches the provided text. Returns 1 if a match is found, 0 otherwise.
## Arguments:
- **{pattern}**: The regex pattern.
- **{text}**   : The text to test.
## Examples:
1. **/if {@regex(^[0-9]+$, $input)} {/echo Number}**
## See Also:
regexmatch