jpbro / VbPcre2

PCRE2 Wrapper for VB6
Other
14 stars 16 forks source link

Documentation Needed #21

Open jpbro opened 7 years ago

jpbro commented 7 years ago

VBPCRE2 needs documentation.

dragokas commented 2 years ago

I will be first :)

Some info about ActiveX Dll.

Download

Pre-compiled binary is here

Installation

Open command prompt (cmd.exe) as Administrator, execute:

regsvr32.exe "<path>\VBPCRE2.dll"

List of objects:

VBPCRE2.cPcre2
VBPCRE2.cPcre2Match
VBPCRE2.cPcre2Matches
VBPCRE2.cPcre2Options
VBPCRE2.cPcre2OptionsCompile
VBPCRE2.cPcre2OptionsGeneral
VBPCRE2.cPcre2OptionsMatch
VBPCRE2.cPcre2OptionsReplace

Examples:

For VBScript:

set lo_RegEx = CreateObject("VBPCRE2.cPcre2")

Usage examples are here

Full docs is in PRCE2 specification.

New methods

(comparing to VBScript.Regexp):

New metasymbols

(comparing to VBScript.Regexp):

Objects hierarchy

Early

Option Constants

(which suits the names in specification where description could be found) TODO: Need check/bind/doc links...

Basic

  • PCRE2_ANCHORED
  • PCRE2_NO_UTF_CHECK
  • PCRE2_NOTBOL
  • PCRE2_NOTEOL
  • PCRE2_NOTEMPTY
  • PCRE2_NOTEMPTY_ATSTART
  • PCRE2_PARTIAL_SOFT
  • PCRE2_PARTIAL_HARD
  • PCRE2_ERROR_NOMATCH
  • PCRE2_SUBSTITUTE_GLOBAL

Compile

  • PCRE2_ALLOW_EMPTY_CLASS
  • PCRE2_ALT_BSUX
  • PCRE2_CASELESS
  • PCRE2_DOLLAR_ENDONLY
  • PCRE2_DOTALL
  • PCRE2_EXTENDED
  • PCRE2_FIRSTLINE
  • PCRE2_MULTILINE
  • PCRE2_UNGREEDY
  • PCRE2_UTF
  • PCRE2_NEVER_BACKSLASH_C
  • PCRE2_ALT_CIRCUMFLEX
  • PCRE2_AUTO_CALLOUT
  • PCRE2_DUPNAMES

Unimplemented

  • PCRE2_MATCH_UNSET_BACKREF
  • PCRE2_NEVER_UCP
  • PCRE2_NEVER_UTF
  • PCRE2_NO_AUTO_CAPTURE
  • PCRE2_NO_AUTO_POSSESS
  • PCRE2_NO_DOTSTAR_ANCHOR
  • PCRE2_NO_START_OPTIMIZE
  • PCRE2_UCP

Substitute

  • PCRE2_SUBSTITUTE_EXTENDED
  • PCRE2_SUBSTITUTE_UNSET_EMPTY
  • PCRE2_SUBSTITUTE_UNKNOWN_UNSET