regex
Coldfuson or Regular Expression find all URLs in string ending with Page .doc, .txt, .pdf
I have Coldfusion web page and need code either Coldfusion or a Regular Expression to strip out URL\'s (multiple) in a string. They are run together with no line breaks or commas separating them. Note[详细]
2023-04-12 14:39 分类:问答regex: replace string if it's between two spaces, leave unchanged if not
I need to remove a string A that exists in another string B only if string A is between two spaces. string A = \"e\"[详细]
2023-04-12 14:36 分类:问答Java .split() with regex to match html <a> links
I need to parse a string and escape all html tags except <a> links. For example: \"Hello, this is <b>A BOLD</b> bit and this is <a href=\"www.google.com\">a google</a>[详细]
2023-04-12 14:19 分类:问答PHP preg_match - only allow alphanumeric strings and - _ characters
I need the regex to check if a string only contains numbers, letters, hyphens or underscore 开发者_开发问答$string1 = \"This is a string*\";[详细]
2023-04-12 14:13 分类:问答python re.sub() with pair or characters
I am trying to grab a string that is surrounded by \"! and replace the first \"!\" with a \"!_\". For example:[详细]
2023-04-12 13:45 分类:问答Replace a class by another in an html string
I want to replace a class name by another in an html string : class=\"abc\" would become class=\"xyz\". I tried to use regular expressions (I\'m using C#) with no success:[详细]
2023-04-12 13:40 分类:问答Regular expression matching "dictionary words"
I\'m a Java user but I\'m new to regular expressions. I just want to have a tiny expression that, given a word (we assume that the string is only one word), answers with a boolean, telling if the wor[详细]
2023-04-12 13:27 分类:问答RegExp wildcard shouldn't overwrite
I\'ve found an useful post here on StackOverflow, I use to hightlight specific text on a website: Link to Answer[详细]
2023-04-12 12:42 分类:问答Using Regex to get the value in a HTML tag?
I\'m using this regex code to get the tags but not the value: (<input type=\"hidden\" name=\"pt\" id=\"pt\" value=\")|(\" \\/>)[详细]
2023-04-12 12:33 分类:问答How do I write a regex that won't match a certain amount of whitespace?
I\'m trying to write a regex that won\'t match a certain number of white spaces, but it\'s not going the way I expected.[详细]
2023-04-12 12:28 分类:问答