Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pantelides Algorithm in PHP

Tags:

algorithm

php

i am studying the pantelides alorithm and i need some help regarding a regular expression the pantelides alorithm located int he index.php of the main package @ http://jpye.dyndns.org/pantelides/

in the index.php file i see:

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

now, i'm not an expert in reg exp but i know what [a-z] means but that is \\b means?

like image 965
joel Avatar asked Dec 28 '22 10:12

joel


1 Answers

Word boundaries

In a double-quoted php string you'll need to escape the backslash using another backslash. Thus, "\\b" is '\b'.

like image 87
middus Avatar answered Jan 12 '23 03:01

middus