Regex
    
            
            in package
            
        
    
    
    
Table of Contents
Methods
- isMatch() : bool
 - match() : MatchResult
 - matchAll() : MatchAllResult
 - matchAllStrictGroups() : MatchAllStrictGroupsResult
 - Variant of `matchAll()` which returns non-null matches (or throws)
 - matchAllWithOffsets() : MatchAllWithOffsetsResult
 - Runs preg_match_all with PREG_OFFSET_CAPTURE
 - matchStrictGroups() : MatchStrictGroupsResult
 - Variant of `match()` which returns non-null matches (or throws)
 - matchWithOffsets() : MatchWithOffsetsResult
 - Runs preg_match with PREG_OFFSET_CAPTURE
 - replace() : ReplaceResult
 - replaceCallback() : ReplaceResult
 - replaceCallbackArray() : ReplaceResult
 - replaceCallbackStrictGroups() : ReplaceResult
 - Variant of `replaceCallback()` which outputs non-null matches (or throws)
 
Methods
isMatch()
    public
            static        isMatch(non-empty-string $pattern, string $subject[, int $offset = 0 ]) : bool
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $offset : int = 0
 
Return values
boolmatch()
    public
            static        match(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Return values
MatchResultmatchAll()
    public
            static        matchAll(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchAllResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Return values
MatchAllResultmatchAllStrictGroups()
Variant of `matchAll()` which returns non-null matches (or throws)
    public
            static        matchAllStrictGroups(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchAllStrictGroupsResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Tags
Return values
MatchAllStrictGroupsResultmatchAllWithOffsets()
Runs preg_match_all with PREG_OFFSET_CAPTURE
    public
            static        matchAllWithOffsets(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchAllWithOffsetsResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Return values
MatchAllWithOffsetsResultmatchStrictGroups()
Variant of `match()` which returns non-null matches (or throws)
    public
            static        matchStrictGroups(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchStrictGroupsResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Tags
Return values
MatchStrictGroupsResultmatchWithOffsets()
Runs preg_match with PREG_OFFSET_CAPTURE
    public
            static        matchWithOffsets(non-empty-string $pattern, string $subject[, int $flags = 0 ][, int $offset = 0 ]) : MatchWithOffsetsResult
    Parameters
- $pattern : non-empty-string
 - $subject : string
 - $flags : int = 0
 - $offset : int = 0
 
Return values
MatchWithOffsetsResultreplace()
    public
            static        replace(string|array<string|int, string> $pattern, string|array<string|int, string> $replacement, string $subject[, int $limit = -1 ]) : ReplaceResult
    Parameters
- $pattern : string|array<string|int, string>
 - $replacement : string|array<string|int, string>
 - $subject : string
 - $limit : int = -1
 
Return values
ReplaceResultreplaceCallback()
    public
            static        replaceCallback(string|array<string|int, string> $pattern, mixed $replacement, string $subject[, int $limit = -1 ][, int $flags = 0 ]) : ReplaceResult
    Parameters
- $pattern : string|array<string|int, string>
 - $replacement : mixed
 - $subject : string
 - $limit : int = -1
 - $flags : int = 0
 
Return values
ReplaceResultreplaceCallbackArray()
    public
            static        replaceCallbackArray(mixed $pattern, string $subject[, int $limit = -1 ][, int $flags = 0 ]) : ReplaceResult
    Parameters
- $pattern : mixed
 - $subject : string
 - $limit : int = -1
 - $flags : int = 0
 
Return values
ReplaceResultreplaceCallbackStrictGroups()
Variant of `replaceCallback()` which outputs non-null matches (or throws)
    public
            static        replaceCallbackStrictGroups(string $pattern, mixed $replacement, string $subject[, int $limit = -1 ][, int $flags = 0 ]) : ReplaceResult
    Parameters
- $pattern : string
 - $replacement : mixed
 - $subject : string
 - $limit : int = -1
 - $flags : int = 0