Browse by Tags
Showing page 1 of 2 (13 total posts)
I am working in a website, using PHP (in Wordpress, if that matters).
I am using preg_replace to add target="_blank" on the fly to all external links in my site. This means that I need a regex to match only the links that do not contain my domain.
var x = /^[\w\.]+[^:]*$/;
This is being used to check a returned string from a browser version inquiry. It appears to me to be looking for [a-zA-Z0-9] and . (period) one or more times. It then wants ...
I'm a newbee and hope someone will take pity on me. In Visual Studio 2008, I need to find all line that have the whole word FROM and does NOT contain the string (WITH (NOLOCK)). I'd settle for it not containing the work WITH. All words are case insensitive.
Select * FROM tblRequests
Select * from tblRequests WITH ...
I have to evaluate many 20 character strings. How would I only allow a match for strings that do not end with four or more zeros?
Basic alphanumeric strings.
Case doesn't matter.
Given the following ...
I'm using php preg_replace_callback to add a capitalized letter to country name, excluding the "and" string, so ie wallis and futuna will become Wallis and Futuna.
It works ok, except for the country andora.
for instance if you are going there ( online regular expression tool )
and copy this ...
This seems like it wouldn't be too difficult, but I am having lots of problems. I am using ASP.NET I have a form with a list of states using their two letter abbreviation. I have a regular expression validator and I would like for it to fail if the person chooses ME or WV from the list. I have have tried several expressions in Expresso and ...
Hello, I am using C# in Visual Studio 2008. I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document. The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis //book ...
I am trying to match all instances of LINES but not GRIDLINES.
Sounds easy right? Well apparently I'm too green to get it. I have "Teach Yourself Regular Expressions in 10 Minutes" and was able to digest it, I have a Firefox addin named 'Regular Expressions Tester' and an app named 'Expresso' which are ...
Dear all,I have a question need your help (POSIX regex). the question is shown as following.There are several specified realms, and now there is a user which name likes firstname.lastname@example.org, we should check if the realm of the use was not included in those realms.
The realms includes @cnn.com, @mil.gov, @blackberry.com, @yahoo.com ...
Ok, real data (but sorry, cannot give you real person names).
I will use TRegExpr for Delphi to process old ascii files with person names (code 720, plus name) optionally followed by the profession (code 100, plus profession name).
...| 720 | John Doe | 720 | Winston Smith | 720 | Peter Parker | 100 | Journalist | 720 | Humpty Dumpty | 720 | ...