PureBasic - RegularExpression
Overview
Regular expressions allow to do advanced pattern matching to quickly match, extract or replace an arbitrary information in a string. These kind of expressions are often difficult to read an write, but once you master them it makes a lot of things easier. Therefore this library is not for beginners, and you need to have some solid basis with PureBasic and programming in general to be able to use this library efficiently.
This library uses PCRE, which is an open source implementation of the Perl regular expression. All the regular expressions supported in PCRE will be supported in PureBasic. To have a complete list of supported pattern and arguments, please visit the PCRE page: http://www.pcre.org/pcre.txt
The PCRE license can be viewed here.
Important: The PCRE license requires that a copyright notice and the license text itself be included in any software that uses the library. So if the RegularExpression library is used in software that is to be made public, the above linked license must be included with the software.
Command Index
CountRegularExpressionGroups
CreateRegularExpression
ExamineRegularExpression
ExtractRegularExpression
FreeRegularExpression
IsRegularExpression
MatchRegularExpression
NextRegularExpressionMatch
RegularExpressionError
RegularExpressionGroup
RegularExpressionGroupLength
RegularExpressionGroupPosition
RegularExpressionMatchLength
RegularExpressionMatchPosition
RegularExpressionMatchString
RegularExpressionNamedGroup
RegularExpressionNamedGroupLength
RegularExpressionNamedGroupPosition
ReplaceRegularExpression
Example
RegularExpression.pb
Supported OS
All