MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
class RegExMBS
class, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A class for fast Regular Expression Search in a perl compatible way.
Notes: uses the PCRE library. You may check the PCRE documentation.
class, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: A class for fast Regular Expression Search in a perl compatible way.
Notes: uses the PCRE library. You may check the PCRE documentation.
RegExMBS.Compile(pattern as string) as boolean
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Compiles a pattern.
Notes:
Some predefined patterns like \b do not support Unicode well, so you may work around that by using your own pattern.
Returns true on success and false on failure.
ErrorMessage, Lasterror, ErrorOffset and Handle are set.
The following table lists the error codes than may be returned by Compile(), along with the error messages that may be returned by both compiling functions.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Compiles a pattern.
Notes:
Some predefined patterns like \b do not support Unicode well, so you may work around that by using your own pattern.
Returns true on success and false on failure.
ErrorMessage, Lasterror, ErrorOffset and Handle are set.
The following table lists the error codes than may be returned by Compile(), along with the error messages that may be returned by both compiling functions.
| 0 | no error |
| 1 | \ at end of pattern |
| 2 | \c at end of pattern |
| 3 | unrecognized character follows \ |
| 4 | numbers out of order in {} quantifier |
| 5 | number too big in {} quantifier |
| 6 | missing terminating ] for character class |
| 7 | invalid escape sequence in character class |
| 8 | range out of order in character class |
| 9 | nothing to repeat |
| 10 | operand of unlimited repeat could match the empty string |
| 11 | internal error: unexpected repeat |
| 12 | unrecognized character after (? |
| 13 | POSIX named classes are supported only within a class |
| 14 | missing ) |
| 15 | reference to non-existent subpattern |
| 16 | erroffset passed as NULL |
| 17 | unknown option bit(s) set |
| 18 | missing ) after comment |
| 19 | parentheses nested too deeply |
| 20 | regular expression too large |
| 21 | failed to get memory |
| 22 | unmatched parentheses |
| 23 | internal error: code overflow |
| 24 | unrecognized character after (?< |
| 25 | lookbehind assertion is not fixed length |
| 26 | malformed number after (?( |
| 27 | conditional group contains more than two branches |
| 28 | assertion expected after (?( |
| 29 | (?R or (?digits must be followed by ) |
| 30 | unknown POSIX class name |
| 31 | POSIX collating elements are not supported |
| 32 | this version of PCRE is not compiled with PCRE_UTF8 support |
| 33 | spare error |
| 34 | character value in \x{...} sequence is too large |
| 35 | invalid condition (?(0) |
| 36 | \C not allowed in lookbehind assertion |
| 37 | PCRE does not support \L, \l, \N, \U, or \u |
| 38 | number after (?C is > 255 |
| 39 | closing ) for (?C expected |
| 40 | recursive call could loop indefinitely |
| 41 | unrecognized character after (?P |
| 42 | syntax error after (?P |
| 43 | two named groups have the same name |
| 44 | invalid UTF-8 string |
| 45 | support for \P, \p, and \X has not been compiled |
| 46 | malformed \P or \p sequence |
| 47 | unknown property name after \P or \p |
RegExMBS.CompileMemory(pattern as memoryblock, ByteOffset as integer) as boolean
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Compiles a pattern.
Notes:
Same as Compile, but the text is stored in a memoryblock and must be a 0 terminated C string.
Be careful to use valid UTF8 input and provide offset in byte units and not in characters.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Compiles a pattern.
Notes:
Same as Compile, but the text is stored in a memoryblock and must be a 0 terminated C string.
Be careful to use valid UTF8 input and provide offset in byte units and not in characters.
RegExMBS.CompileOptionAnchored as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Force pattern anchoring
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Force pattern anchoring
Notes: (Read and Write property)
RegExMBS.CompileOptionAutoCallOut as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Compile automatic callouts
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Compile automatic callouts
Notes: (Read and Write property)
RegExMBS.CompileOptionCaseLess as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Do caseless matching
Notes:
The current library version is compiled to match only ASCII characters caseless.
(Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Do caseless matching
Notes:
The current library version is compiled to match only ASCII characters caseless.
(Read and Write property)
RegExMBS.CompileOptionDollarEndOnly as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: $ not to match newline at end
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: $ not to match newline at end
Notes: (Read and Write property)
RegExMBS.CompileOptionDotAll as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: . matches anything including NL
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: . matches anything including NL
Notes: (Read and Write property)
RegExMBS.CompileOptionExtended as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Ignore whitespace and # comments
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Ignore whitespace and # comments
Notes: (Read and Write property)
RegExMBS.CompileOptionFirstLine as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Force matching to be before newline
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Force matching to be before newline
Notes: (Read and Write property)
RegExMBS.CompileOptionMultiline as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: ^ and $ match newlines within data
Example:
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: ^ and $ match newlines within data
Example:
dim r as RegExMBS
dim n,i,c as integer
dim s as string
s=ReplaceLineEndings(EditField1.text,EndOfLine.UNIX)
r=new RegExMBS
'r.CompileOptionFirstLine=True
r.CompileOptionMultiline=True
if r.Compile("^....$") then
n=0
do
c=r.Execute(s,n)
if c>0 then
MsgBox r.Substring(0)
n=r.Offset(1)
end if
loop until c=0
end if
Notes: (Read and Write property)RegExMBS.CompileOptionNoAutoCapture as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Disable numbered capturing parentheses (named ones available)
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Disable numbered capturing parentheses (named ones available)
Notes: (Read and Write property)
RegExMBS.CompileOptionNoUTF8Check as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Do not check the pattern for UTF-8 validity.
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Do not check the pattern for UTF-8 validity.
Notes: (Read and Write property)
RegExMBS.CompileOptions as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The internal value of all the compile options.
Notes:
You can get and set the bits using the CompileOption* Boolean properties.
(Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The internal value of all the compile options.
Notes:
You can get and set the bits using the CompileOption* Boolean properties.
(Read only property)
RegExMBS.CompileOptionUngreedy as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Invert greediness of quantifiers.
Notes:
Basicly this is about whether to find the next matching item or the last matching item in the whole string.
Matching the next item is always much faster.
(Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Invert greediness of quantifiers.
Notes:
Basicly this is about whether to find the next matching item or the last matching item in the whole string.
Matching the next item is always much faster.
(Read and Write property)
RegExMBS.CompileOptionUTF8 as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Run in UTF-8 mode.
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Compile: Run in UTF-8 mode.
Notes: (Read and Write property)
RegExMBS.Count as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Number of offsets found.
Notes: (Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Number of offsets found.
Notes: (Read only property)
RegExMBS.ErrorMessage as String
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last message reported.
Notes:
Set by Study and Compile.
(Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last message reported.
Notes:
Set by Study and Compile.
(Read only property)
RegExMBS.ErrorOffset as integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last error offset from the compile function.
Notes: (Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last error offset from the compile function.
Notes: (Read only property)
RegExMBS.Escape(text as string) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 7.8, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Escapes the string.
Example:
The string is converted to UTF8 and all the RegEx special characters are escaped.
Returns "" on low memory.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 7.8, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Escapes the string.
Example:
msgbox r.Escape("Hello []") // shows Hello \[\]
Notes: The string is converted to UTF8 and all the RegEx special characters are escaped.
Returns "" on low memory.
RegExMBS.Execute(text as string, start as integer) as integer
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Performs a search with the compiled pattern.
Example:
Returns the number of found offsets.
text must be in UTF-8 text encoding.
Start must be 0 for the first character and the byte offset for other chacters. Do not pass values from OffsetCharacters here!
Return values from Execute:
If Execute() fails, it returns a negative number. The following are defined in the header file:
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Performs a search with the compiled pattern.
Example:
dim r as RegExMBS
dim s as string
dim c as integer
s="123 ABC 456"
r=new RegExMBS
if r.Compile(" \D+ ") then
c=r.Execute(s,0)
MsgBox str(c)+" "+str(r.Offset(0))+" "+str(r.Offset(1))
// shows: 1 3 8
// 1 for ubound of the offset array
// 3 for 3 bytes before the matched pattern
// 8 for the 8 bytes before the end of the matched pattern
end if
Notes: Returns the number of found offsets.
text must be in UTF-8 text encoding.
Start must be 0 for the first character and the byte offset for other chacters. Do not pass values from OffsetCharacters here!
Return values from Execute:
If Execute() fails, it returns a negative number. The following are defined in the header file:
| PCRE_ERROR_NOMATCH | -1 | The subject string did not match the pattern. |
| PCRE_ERROR_NULL | -2 | Either code or subject was passed as "". |
| PCRE_ERROR_BADOPTION | -3 | An unrecognized bit was set in the options argument. |
| PCRE_ERROR_BADMAGIC | -4 | PCRE stores a 4-byte "magic number" at the start of the compiled code, to catch the case when it is passed a junk pointer and to detect when a pattern that was compiled in an environment of one endianness is run in an environment with the other endianness. This is the error that PCRE gives when the magic number is not present. |
| PCRE_ERROR_UNKNOWN_NODE | -5 | While running the pattern match, an unknown item was encountered in the compiled pattern. This error could be caused by a bug in PCRE or by overwriting of the compiled pattern. |
| PCRE_ERROR_NOMEMORY | -6 | If a pattern contains back references, but the ovector that is passed to Execute() is not big enough to remember the referenced substrings, PCRE gets a block of memory at the start of matching to use for this purpose. If the call via pcre_malloc() fails, this error is given. The memory is automatically freed at the end of matching. |
| PCRE_ERROR_MATCHLIMIT | -8 | The backtracking limit, as specified by the match_limit field in a pcre_extra structure (or defaulted) was reached. |
| PCRE_ERROR_RECURSIONLIMIT | -21 | The internal recursion limit, as specified by the match_limit_recursion field in a pcre_extra structure (or defaulted) was reached. |
| PCRE_ERROR_CALLOUT | -9 | This error is never generated by Execute() itself. It is provided for use by callout functions that want to yield a distinctive error code. See the pcrecallout documentation for details. |
| PCRE_ERROR_BADUTF8 | -10 | A string that contains an invalid UTF-8 byte sequence was passed as a subject. |
| PCRE_ERROR_BADUTF8_OFFSET | -11 | The UTF-8 byte sequence that was passed as a subject was valid, but the value of startoffset did not point to the beginning of a UTF-8 character. |
| PCRE_ERROR_PARTIAL | -12 | The subject string did not match, but it did match partially. See the pcrepartial documentation for details of partial matching. |
| PCRE_ERROR_BADPARTIAL | -13 | The PCRE_PARTIAL option was used with a compiled pattern containing items that are not supported for partial matching. See the pcrepartial documentation for details of partial matching. |
| PCRE_ERROR_INTERNAL | -14 | An unexpected internal error has occurred. This error could be caused by a bug in PCRE or by overwriting of the compiled pattern. |
| PCRE_ERROR_BADCOUNT | -15 | This error is given if the value of the ovecsize argument is negative. |
RegExMBS.ExecuteMemory(text as memoryblock, ByteOffset as integer, ByteLength as integer) as integer
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Performs a search with the compiled pattern.
Notes:
Same as Execute, but the text is stored in a memoryblock.
Be careful to use valid UTF8 input and provide offset and length in byte units and not in characters.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Performs a search with the compiled pattern.
Notes:
Same as Execute, but the text is stored in a memoryblock.
Be careful to use valid UTF8 input and provide offset and length in byte units and not in characters.
RegExMBS.ExecuteOptionAnchored as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Match only at the first position
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Match only at the first position
Notes: (Read and Write property)
RegExMBS.ExecuteOptionNotBOL as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Subject is not the beginning of a line
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Subject is not the beginning of a line
Notes: (Read and Write property)
RegExMBS.ExecuteOptionNotEmpty as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: An empty string is not a valid match
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: An empty string is not a valid match
Notes: (Read and Write property)
RegExMBS.ExecuteOptionNotEOL as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Subject is not the end of a line
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Subject is not the end of a line
Notes: (Read and Write property)
RegExMBS.ExecuteOptionNoUTF8Check as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Do not check the subject for UTF-8 validity
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Do not check the subject for UTF-8 validity
Notes: (Read and Write property)
RegExMBS.ExecuteOptionPartial as Boolean
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Return PCRE_ERROR_PARTIAL for a partial match
Notes: (Read and Write property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Option for Execute: Return PCRE_ERROR_PARTIAL for a partial match
Notes: (Read and Write property)
RegExMBS.ExecuteOptions as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The internal value of all the execute options.
Notes:
You can get and set the bits using the CompileOption* Boolean properties.
(Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The internal value of all the execute options.
Notes:
You can get and set the bits using the CompileOption* Boolean properties.
(Read only property)
RegExMBS.ExtraHandle as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the extra data structure.
Notes: (Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the extra data structure.
Notes: (Read only property)
RegExMBS.Handle as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the pattern data structure.
Notes: (Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The handle to the pattern data structure.
Notes: (Read only property)
RegExMBS.Lasterror as Integer
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last error code reported.
Notes:
0 is no error and -1 is some parameter error.
(Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The last error code reported.
Notes:
0 is no error and -1 is some parameter error.
(Read only property)
RegExMBS.Offset(index as integer) as integer
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Get the offset in the offset list with given index in bytes.
Notes:
If you found a pattern in a string you get here:
Invalid indexes return 0.
Count is the number of entries here.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Get the offset in the offset list with given index in bytes.
Notes:
If you found a pattern in a string you get here:
| index | offset |
| 0 | start of matched pattern |
| 1 | end of matched pattern |
| 2 | start of subexpression 1 |
| 3 | end of subexpression 1 |
| 2*n | start of subexpression n |
| 2*n+1 | end of subexpression n |
Invalid indexes return 0.
Count is the number of entries here.
RegExMBS.OffsetCharacters(index as integer) as integer
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Get the offset in the offset list with given index in characters.
Notes:
This function is identical to Offset(), but returns characters instead of bytes.
Works only with valid UTF-8 strings as input.
Value is calculated on each function call based on Offset(index) and current text.
If you found a pattern in a string you get here:
Invalid indexes return 0.
Count is the number of entries here.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Get the offset in the offset list with given index in characters.
Notes:
This function is identical to Offset(), but returns characters instead of bytes.
Works only with valid UTF-8 strings as input.
Value is calculated on each function call based on Offset(index) and current text.
If you found a pattern in a string you get here:
| index | offset |
| 0 | start of matched pattern |
| 1 | end of matched pattern |
| 2 | start of subexpression 1 |
| 3 | end of subexpression 1 |
| 2*n | start of subexpression n |
| 2*n+1 | end of subexpression n |
Invalid indexes return 0.
Count is the number of entries here.
RegExMBS.Replace(NewText as string) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Replaces the text on the current found position and returns the complete new text.
Notes:
You need to call Execute before.
Lasterror is set.
NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Replaces the text on the current found position and returns the complete new text.
Notes:
You need to call Execute before.
Lasterror is set.
NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
RegExMBS.ReplaceAll(Target as string, NewText as string) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Searches the target string for current pattern and replaces all occurrences with the new text.
Notes:
You need to call Compile before to initialize the pattern and you should call Study before to optimize the pattern.
Lasterror is set.
Target and NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Searches the target string for current pattern and replaces all occurrences with the new text.
Notes:
You need to call Compile before to initialize the pattern and you should call Study before to optimize the pattern.
Lasterror is set.
Target and NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
RegExMBS.ReplaceSelection(NewText as string) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Replaces the text on the current found position and returns new text for that selection.
Notes:
This method is for text editors where you will store result in editfield.seltext to replace the current selection.
Lasterror is set.
You need to call Execute before.
NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Replaces the text on the current found position and returns new text for that selection.
Notes:
This method is for text editors where you will store result in editfield.seltext to replace the current selection.
Lasterror is set.
You need to call Execute before.
NewText must have UTF-8 text encoding.
\0 references the whole found pattern, \1 to \15 the subexpressions.
\t is replaced with chr(9), \r and \n with chr(13) and \\ with \.
RegExMBS.StringNumber(name as string) as integer
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: This convenience function finds the number of a named substring capturing parenthesis in a compiled pattern.
Notes:
name: Name whose number is required
The yield of the function is the number of the parenthesis if the name is found, or PCRE_ERROR_NOSUBSTRING otherwise.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: This convenience function finds the number of a named substring capturing parenthesis in a compiled pattern.
Notes:
name: Name whose number is required
The yield of the function is the number of the parenthesis if the name is found, or PCRE_ERROR_NOSUBSTRING otherwise.
RegExMBS.Study as boolean
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: After you compiled a pattern study can optimize it.
Notes:
Only useful if you use Execute several times.
In that case you call one time Compile, one time Study and several times Execute.
Errormessage is set.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: After you compiled a pattern study can optimize it.
Notes:
Only useful if you use Execute several times.
In that case you call one time Compile, one time Study and several times Execute.
Errormessage is set.
RegExMBS.Substring(index as integer) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the subexpression found with the given index.
Notes:
Returns "" on any error.
Lasterror is set.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the subexpression found with the given index.
Notes:
Returns "" on any error.
Lasterror is set.
RegExMBS.Substring(name as string) as string
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the subexpression found with the given name.
Notes:
Returns "" on any error.
Lasterror is set.
method, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the subexpression found with the given name.
Notes:
Returns "" on any error.
Lasterror is set.
RegExMBS.Text as String
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The text used for the last successfull compile call.
Notes: (Read only property)
property, Regular Expressions, MBS RegEx Plugin (RegEx), class RegExMBS, Console safe, Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The text used for the last successfull compile call.
Notes: (Read only property)
The items on this page are in the following plugins: MBS RegEx Plugin.
Monkeybread Software Realbasic Plugins - Pfarrgemeinderat St. Arnulf Nickenich