Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.regexp
  • Platforms: .NET, .NET Standard 2.0, Island

Methods


Compile

 

// .NET, Island
class method Compile(expr: string): tuple of (Reference<Regexp>, error)
// .NET Standard 2.0
class method Compile(expr: string): ValueTuple<Reference<Regexp>, error>

 

// .NET, Island
static (Reference<Regexp>, error) Compile(string expr)
// .NET Standard 2.0
static ValueTuple<Reference<Regexp>, error> Compile(string expr)

 

// .NET, Island
static func Compile(_ expr: string) -> (Reference<Regexp>, error)
// .NET Standard 2.0
static func Compile(_ expr: string) -> ValueTuple<Reference<Regexp>, error>

 

// .NET, Island
func Compile(expr string) (Reference<Regexp>, error)
// .NET Standard 2.0
func Compile(expr string) ValueTuple<Reference<Regexp>, error>

Parameters:

  • expr:

CompilePOSIX

 

// .NET, Island
class method CompilePOSIX(expr: string): tuple of (Reference<Regexp>, error)
// .NET Standard 2.0
class method CompilePOSIX(expr: string): ValueTuple<Reference<Regexp>, error>

 

// .NET, Island
static (Reference<Regexp>, error) CompilePOSIX(string expr)
// .NET Standard 2.0
static ValueTuple<Reference<Regexp>, error> CompilePOSIX(string expr)

 

// .NET, Island
static func CompilePOSIX(_ expr: string) -> (Reference<Regexp>, error)
// .NET Standard 2.0
static func CompilePOSIX(_ expr: string) -> ValueTuple<Reference<Regexp>, error>

 

// .NET, Island
func CompilePOSIX(expr string) (Reference<Regexp>, error)
// .NET Standard 2.0
func CompilePOSIX(expr string) ValueTuple<Reference<Regexp>, error>

Parameters:

  • expr:

Match

 

class method Match(pattern: string; b: Slice<Byte>): tuple of (matched: Boolean, err: error)

 

static (Boolean matched, error err) Match(string pattern, Slice<Byte> b)

 

static func Match(_ pattern: string, _ b: Slice<Byte>) -> (matched:Boolean, err:error)

 

func Match(pattern string, b Slice<Byte>) (matched Boolean, err error)

Parameters:

  • pattern:
  • b:

MatchReader

 

class method MatchReader(pattern: string; r: RuneReader): tuple of (matched: Boolean, err: error)

 

static (Boolean matched, error err) MatchReader(string pattern, RuneReader r)

 

static func MatchReader(_ pattern: string, _ r: RuneReader) -> (matched:Boolean, err:error)

 

func MatchReader(pattern string, r RuneReader) (matched Boolean, err error)

Parameters:

  • pattern:
  • r:

MatchString

 

class method MatchString(pattern: string; s: string): tuple of (matched: Boolean, err: error)

 

static (Boolean matched, error err) MatchString(string pattern, string s)

 

static func MatchString(_ pattern: string, _ s: string) -> (matched:Boolean, err:error)

 

func MatchString(pattern string, s string) (matched Boolean, err error)

Parameters:

  • pattern:
  • s:

MustCompile

 

class method MustCompile(str: string): Reference<Regexp>

 

static Reference<Regexp> MustCompile(string str)

 

static func MustCompile(_ str: string) -> Reference<Regexp>

 

func MustCompile(str string) Reference<Regexp>

Parameters:

  • str:

MustCompilePOSIX

 

class method MustCompilePOSIX(str: string): Reference<Regexp>

 

static Reference<Regexp> MustCompilePOSIX(string str)

 

static func MustCompilePOSIX(_ str: string) -> Reference<Regexp>

 

func MustCompilePOSIX(str string) Reference<Regexp>

Parameters:

  • str:

QuoteMeta

 

class method QuoteMeta(s: string): string

 

static string QuoteMeta(string s)

 

static func QuoteMeta(_ s: string) -> string

 

func QuoteMeta(s string) string

Parameters:

  • s: