I\'m creating regular expression in the form: A | B | C ... automatically, by program, where A, B, C, ... are constant strings.
Do I do something wrong? I need the youtube code, but it doesn\'t return the real value. if(preg_match_all(\"http:\\/\\/www\\.youtube\\.com\\/v\\/(.*)(.*)\", $row->n_texto, $matches){
I have got HTML source code, and i must get some information text in the HTML. I can not use DOM, because the document isn\'t well-formed.
I\'m trying to split some html content using php\'s preg-match-all function: <li class=\"cat-item\"><a title=\"blabla\" href=\"#\">parent 1</a>
$str = \"<p>(a)(3) asdf (10) asdf</p>\"; Trying to pull the second set of parentheses using php preg_match_all
$string = (string) file_get_contents($_FILES[\'file\'][\'tmp_name\']); echo $string; // Correctly echos string contents
I have virtually no experience of regx, but trying my best. I have a string like this: $fString = \"Name=Sök,Value=2,Title=Combine me,Options=[Item1=1,Item2=2,Item3=3]\";
I\'m in need for php help/expertise to tweak/change this preg_match_all function. What I want to do is create default values for missing ordered pairs. It is matching the data correctly, but I need so
I have an html document that I saved as a .txt file. I want to extract each string following /user/ and make a comma-separated list of all the extracted strings.
I have a preg_match_all with a regexpression, that should take a youtube´s video number and place it in the array, so the more youtube videos there is, the more arrays it makes. Here\'s the result, t