If I have a text line such as \"so and so bit mike\" where so and so could be any group of words with any group of spaces in it, what would a regular expression look like that would match
Here is my regex: ^(?#Protocol)((ht)tp(s?)\\:\\/\\/|~\\/|\\/){1}((?#IP Address)(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(?#Subdomains)(([-\\w]+\\.)+(?#TopLevel Domains))([a-z]+))(?#Port)(:[\\d]{1,
I had to translate the following if statement in to a regex so we could use it on a whole string if (buffer[i] < 32 && !(buffer[i] == \'\\t\' || buffer[i] == \'\\r\' || buffer[i] == \'\\n\
I\'ve got defective input coming in that looks like this... foo<p>bar</p> And I want to normalize it to wrap the leading text in a p tag:
I would like to match the following com.my.company.moduleA.MyC开发者_开发问答lassName com.my.company.moduleB.MyClassName
In a PHP variable I have some text that contains some keywords. These keywords are currently capitalised. I would like them to remain capitalised and be wrapped in curly brackets but once only. I am t
I’m wondering how to match any characters except for a particular string (call it \"for\") ina regex.
I have an app where users can specify regular expressions in a number of places. These are used while running the app to check if text (e.g. URLs and HTML) matches the regexes. Often the users want to
How do I convert February 2, 2002 at 10 to GREP REG开发者_Go百科EX for EnCase Forensics? ThanksI don\'t know EnCase Forensics and given the astounding number of answers here, I am not alone...
To match string, which contains some word, I can use pattern \"/.*word.*/\". But how do I match a string, which does not contain this word?