Actions
API¶
Easy interface :¶
Here, the functions take several default parameters. They are useful if you need just to do basic manipulation.
_pcreEasyMatch¶
Scans for a match in string for pattern.
Prototype : fun [S S] I
- S : pattern : any valid regular expression
- S : string : any string to scan for matches
Return : I : 1 if matched, otherwise 0. (or nil if error)
_pcreEasySplit¶
Breaks the string on the pattern, and returns an list of the tokens.
Prototype : fun [S S] [S r1]
- S : pattern : any valid regular expression
- S : string : any string to scan for matches
Return : [S r1] : a list of string or nil if error
_pcreEasyReplace¶
Replaces all occurrences of the pattern in the string with the replacement text.
Prototype : fun [S S S] S
- S : pattern : any valid regular expression
- S : string : any string to scan for matches
- S : replace : any text to replace each match with
Return : S : the new string (or nil if error)
Normal interface :¶
Here, you can configure your ask. Click to consult Normal Api.
Return to the main page
Updated by iri almost 14 years ago ยท 3 revisions