preg-match-all
How to get (in PHP) all substrings, which describes a regular expression?
I\'m creating regular expression in the form: A | B | C ... automatically, by program, where A, B, C, ... are constant strings.[详细]
2023-02-10 22:23 分类:问答PHP: Extract video ID from YouTube URLs
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){[详细]
2023-02-08 03:03 分类:问答How Can I Get Data From HTML Source Code with PHP and RegEx?
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.[详细]
2023-02-07 03:09 分类:问答php preg_match_all: split list items and child lists
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>[详细]
2023-02-06 19:01 分类:问答regex multiple parentheses
$str = \"<p>(a)(3) asdf (10) asdf</p>\"; Trying to pull the second set of parentheses using php preg_match_all[详细]
2023-02-06 13:43 分类:问答preg_match_all confusing failing
$string = (string) file_get_contents($_FILES[\'file\'][\'tmp_name\']); echo $string; // Correctly echos string contents[详细]
2023-02-04 12:27 分类:问答PHP preg_match_all expression
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]\";[详细]
2023-02-03 19:37 分类:问答help with preg_match_all and creating default values
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[详细]
2023-02-03 19:04 分类:问答PHP- How do I search through an HTML document and extract certain strings in php?
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.[详细]
2023-02-03 03:26 分类:问答Regex pregmatch not correct "sometimes"
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[详细]
2023-02-02 04:15 分类:问答