preg-match
Regex Valid Twitter Mention
I\'m trying to find a regex that matches if a Tweet it\'s a true mention. To be a mention, the string can\'t start with \"@\" and can\'t contain \"RT\" (case insensitive) and \"@\" must start the word[详细]
2023-03-30 01:45 分类:问答preg_math multiply responce
<?php $string = \"Movies and Stars I., 32. part\"; $pattern = \"((IX|IV|V?I{0,3}[\\.]))\"; if(pr开发者_开发问答eg_match($pattern, $string, $x) == false)[详细]
2023-03-28 21:27 分类:问答PHP Regular Expression problem when trying to match numbers
I have an issue with regular expressions in PHP. I\'m trying to find a match for some header data that I received via CURL. However, my regex is matching two lines, instead of one.[详细]
2023-03-28 18:45 分类:问答cannot catch the html tags using regex ! [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to parse HTML with PHP?[详细]
2023-03-28 18:04 分类:问答Regular expression to find parent::
I want to find all occurrences of parent::, the called function and the parameter For example: parent::test( new ReflectionClass($this) );[详细]
2023-03-28 17:15 分类:问答correction required for regular expression to get site name
Problem: Extraction anything between http://www. and .com OR http:// & .com. Solution: <?php $url1=\'http://www.examplehotel.com\';[详细]
2023-03-28 15:11 分类:问答PHP Menu with preg_match
First sorry for my bad English. I have this menubar in PHP. I want that if an user is on a page the current menuitem gets another color. I had a code that works, but if i have a page like /item.php?[详细]
2023-03-28 05:40 分类:问答PREG_ or Regex Question
I\'d like to match the last instance of / (I believe you use [^/]+$) and copy the contents of the next four or less numbers until开发者_高级运维 I get to a dash -.[详细]
2023-03-27 14:51 分类:问答preg_match php problem
i try to find a Link i a page Link looks like this https://pos.xxxxxxxxxx.de/xxxxxxxxxxxx/app?funnel=login_box&tid=2001004[详细]
2023-03-26 17:16 分类:问答PHP regex patterns
I want to know how regex patterns are written. Where is their base and what do I need to know in order to write patterns. I have absolutely no idea on how to write my own patterns and I am quite in a[详细]
2023-03-26 14:00 分类:问答