preg-replace
sprintf function not evaluating
I\'m trying to remove non-RFC characters after filtering a URL with other methods.This method breaks:[详细]
2023-03-23 16:29 分类:问答Preg_replace simple math problem with solution?
I have strings that contain simple math problems 1+10, 2+2, 5-3... I\'m wanting to be able to match these math problems and replace them with the solution.[详细]
2023-03-23 13:02 分类:问答str_replace not working when text together
This might be a noob question but when I do str_replace(\"<P id=description>\", \"\", $content);[详细]
2023-03-23 10:54 分类:问答Find and replace all links in a web page using php/javascript
I need to find links in a part of some html code and replace all the links with two different absolute or base domains followed by the link on the page...[详细]
2023-03-23 06:24 分类:问答Consolidating duplicates with preg_replace, take into consideration dash
I have a preg_replace that finds duplicate entries and consolidates. I need to take into consideration the dash as well, but currently it does not.[详细]
2023-03-22 20:40 分类:问答php use preg_replace remove div
I tried use preg_replace remove the div which class=\"image content\", I use some code below开发者_运维问答, but still remain two </div> after my preg_replace, need a help, thanks.[详细]
2023-03-22 15:53 分类:问答Inserting number after alphanumeric group not followed by numeric group
I have a string that contains one or more alphanumerical codes (starting with a letter) separated with an underscore. Some codes are followed by an index number, which is also separated with an unders[详细]
2023-03-22 06:37 分类:问答How to remove link with preg_replace();?
I\'m not sure how to explain this, so I\'ll show it on my code. <a href=\"link.php\">First</a> and[详细]
2023-03-22 04:28 分类:问答preg_replace: replace everything but
I want to remove some unwanted characters from the following string. Here\'s the code. $input=\"aecąßÄ1,.!?-_\'\\\"/><\";[详细]
2023-03-22 03:12 分类:问答strip_tags: strip off the messy tags and styles
How can I strip off certain html tags and allow some of them? For instance, I want to strip off span tags but allow the span with underline.[详细]
2023-03-22 02:06 分类:问答