RegexMatching

You may want to read the extension documentation if you have questions about how extensions work

Example

Create an extension & implement onSourceFileFound or another function.

1. Define your regex(es)

# Key not found for Regex.structure  

2. Write your onMatch function(s)

# Key not found for Regex.onMatchFull  

3. Call Regex Utility

public function onSourceFileFound($file){  
    $this->match('WrappedGenericBlock',$file->content());  
}  

The $info array

$info = [  
    'matchList'=>$matches, // Array of all matches  
    'lineStart' => -1, // (not implemented, @TODO) Line in file/text that your match starts on  
    'lineEnd' => -1,   // (not implemented, @TODO) Line in file/text that your match ends on  
    'text' => $text,   //  
    'regIndex' => null,  
];