I need to obtain a Regular expression pattern which will do the following-
Given an input string, return true if it contains the words APPLE and/or ORANGE but not the word MANGO. The words may appear in any order in the string.
Input : " I like APPLE and MANGO" Output : False
Input : "I like APPLE and ORANGE" Output : True
Input : "I like ORANGE" Output : True
Input : "I like MANGO" Output : False
This article describes a simple method to resize a control at runtime. It includes ready-to-use source code and a complete sample demonstration application. We'll also talk about C# Extension Methods.
In one of my applications…
Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: