can someone tell me what this script mean ? preg_match_all("/superdesc(.*?)Starting/s", $d, $M); Code (markup):
it uses regEx to match "/superdesc(.*?)Starting/s" in the provided string $d, and puts all the matches into the array $M
/superdesc(.*?)Starting/s / = delimiter ( = Opens the subpattern . = match any character except new line *? = Match 0 or more times, but as few times as possible. ) = Closes the subpattern / = delimiter s = modifier Delimiter = any character that opens/closes the pattern (cannot be used withing the pattern without being escaped) Subpattern = what it says Modifier = when /s is used, a dot metacharacter (.) in the pattern matches all characters, including newlines. Without it, newlines are excluded. Do you have a particular pattern you are trying to work out?