preg-match
Is there a better way to write this regex?
I\'m trying to pull the weather from the weather network.This code gives it to me, but it looks pretty long, and returns two values in the array (that\'s why I need to return $output[1] and not $outpu[详细]
2023-03-20 15:41 分类:问答Is this regex right (eregi to preg_match conversion) [duplicate]
This question already has answers here: How can I convert ereg expressions to preg in PHP? (4 answers) Closed 3 years ago.[详细]
2023-03-20 13:38 分类:问答What shall be the best optimized preg pattern for this data?? Regular Expression help needed
I need help with php preg pattern to extract contents from the following data : <div class=\"box\">[详细]
2023-03-20 09:47 分类:问答how to remove chars into a string?
I have a lot of strings, and I need to delete \'0\' at start of string, but what is the better way to do it, because this is an example of strings:[详细]
2023-03-20 03:03 分类:问答preg_match exact number
I\'m using $regex = \'/\'.implode(\'|\', 10).\'/i\'; preg_match($regex, $ids) to find the number 10 in a list of IDs ($ids). However, if the list of IDs looks like this:[详细]
2023-03-19 23:50 分类:问答Match parentheses with preg_match() [duplicate]
This question alread开发者_JAVA百科y has answers here: Closed 11 years ago. Possible Duplicate: Regex for checking if a string has mismatched parentheses?[详细]
2023-03-19 14:23 分类:问答Matching with preg_match_all
I got this regex: $val = \"(123)(4)(56)\"; $regex = \"^(\\((.*?)\\))+$\"; p开发者_如何学Creg_match_all(\"/{$regex}/\", $val, $matches);[详细]
2023-03-19 13:58 分类:问答Can I use elseif with preg_match in PHP?
So, I\'m creating a vulnerability scanner for SQLI that tests individual websites as a sort of free online service.[详细]
2023-03-19 08:18 分类:问答PHP Reading XML File with Preg_match_all
I am stuck on something I can\'t get my head around. Basically I have XML files that need to be read when they are submmitted. I am looking specifically for lines that include:[详细]
2023-03-19 06:42 分类:问答Need help understanding create_function() and regex
After allot of searching around SO and other forums also stumbling over various php function documentation, I tried to edit a function that I found on here(converts URLs to clickable links) so it will[详细]
2023-03-19 01:25 分类:问答