A convinience function to create and popular a regex structure |
Declaration: |
FeriteRegex *ferite_generate_regex( FeriteScript *script, char *pattern, char *swapbuffer, char type, char *flags ) |
Parameters: |
Parameter #1: FeriteScript *script - The script |
Parameter #2: char *pattern - The regular expression |
Parameter #3: char *swapbuffer - The buffer that is evaluated on a match |
Parameter #4: char type - The type of the regular expression. s for a swap, m for a match, c for an assignment. |
Parameter #5: char *flags - The flags the effect the behavior of the regular expression. |
Returns: |
A regular expression structure setup and populated correctly |