Pantelid Algorithm in PHP

I am studying pantelid alorithm and I need help regarding regular expression of alorithm pantolides located inside it index.php of main package @ http://jpye.dyndns.org/pantelides/

in the index.php file, I see:

if(preg_match_all("#\\b([az][a-z_0-9]*)(?!\\()\\b#i",$str,$matches)){ 

Now, I am not an expert in reg exp, but I know what [az] means, but does that \\b mean?

+4
source share
1 answer

Word boundaries

In php two line string, you will need to escape backslash using another backslash. So, "\\b" is '\b' .

+10
source

Source: https://habr.com/ru/post/1384583/


All Articles