Brightsign Object Reference Manual (FW 5.1) Manuel d'utilisateur Page 38

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 341
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 37
30
roRegex
This object allows the implementation of the regular-expression processing provided by the PCRE library.
This object is created with a string to represent the "matching-pattern" and a string to indicate flags that modify the
behavior of one or more matching operations:
CreateObject("roRegex", "[a-z]+", "i")
The match string (in the example above, "[a-z]+", which matches all lowercase letters) can include most Perl
compatible regular expressions found in the PCRE documentation.
This object supports any combination of the following behavior flags (in the example above, "i", which can be modified to
match both uppercase and lowercase letters):
"i": Case-insensitive match mode.
"m": Multiline mode. The start-line ("^") and end-line ("$") constructs match immediately before or after any
newline in the subject string. They also match at the absolute beginning or end of a string.
"s": Dot-all mode, which includes a newline in the ".*" regular expression. This modifier is equivalent to "/s" in
Perl.
"x": Extended mode, which ignores whitespace characters except when escaped or inside a character class. This
modifier is equivalent to "/x" in Perl.
Interfaces: ifRegex
The ifRegex interface provides the following:
IsMatch(a As String) As Boolean: Returns True if the string is consistent with the matching pattern.
Vue de la page 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 340 341

Commentaires sur ces manuels

Pas de commentaire