Regular Expression in JavaScript

What is a Regular Expression(RegEx)? Regular expressions/sequence of characters are patterns used to match character combinations in strings. A regEx can be a single character or a complicated pattern. Regular expressions can be used to perform text search and validation operations. Special characters in regular expressions Character Meaning ^ It Matches the beginning of an input e.g., … Read more

PHP Regular Expressions

What is Regex? Regular expressions (regex) are a sequence of specific characters itself. Generally the regex consists of arithmatic operators & alphanumeric characters to construct specific patterns. These patterns are widely used for customized validation as per user requirement. Functions PHP provides us three functions to deal with regular expressions: preg_match: The function is used … Read more