Web Design Tutorials and Articles

Wednesday, April 8, 2009

Building JavaScript String Regular Expressions

JavaScript String Regular Expressions – Part 6 Introduction This is part 6 of my series, JavaScript String Regular Expressions. Many of the examples we have come across are simple examples. In this section we look at two examples that are more demanding. Before we leave this part of the series, we shall talk about what is called Backtracking. Steps required to build a Regex These are the steps required to build a regex: - Specify the task in detail, - Break down the problem into smaller parts, -... Sign in to see full entry.

Flags in JavaScript String Regular Expressions

JavaScript String Regular Expressions – Part 5 Introduction This is part 5 of my series JavaScript String Regular Expressions. Matching is case sensitive. You may not know if what you are looking for is in lower case or upper case or has mixed cases. It is possible for you to make a case insensitive match. You need what is called a flag for this. There are a good number of flags and each has its own purpose. We shall learn some of them in this part of the series. In this part of the series, we... Sign in to see full entry.

Grouping in JavaScript String Regular Expressions

JavaScript String Regular Expressions – Part 4 Introduction This is the fourth part of my series JavaScript String Regular Expressions. You can actually group bits of a regular expression and do something with it. That is what this part of the series is about. Groupings We can use parenthesis to group characters in a pattern. Consider the following pattern: /The (guitarist)/ “guitarist” is in parenthesis. The parentheses form a group, which has the text: “guitarist”. Consider the following: /The... Sign in to see full entry.

More JavaScript String Regular Expression Patterns

JavaScript String Regular Expressions – Part 3 Introduction This is the third part of my series JavaScript String Regular Expressions. In this part of the series, we continue to analyze patterns in JavaScript Regular Expressions using the string object. Matching Repetitions In the subject string, characters or groups of characters may repeat themselves. We shall talk about groups of characters, as a topic, later. For now, let us concentrate on a single character repeating itself. There are... Sign in to see full entry.

JavaScript String Regular Expression Patterns

JavaScript String Regular Expressions – Part 2 Introduction This is the second part of my series, JavaScript String Regular Expressions. In this part of the series, we start analyzing patterns in JavaScript Regular Expressions. Character Classes The Square Brackets A character class allows a set of possible characters, where one of them would match at a particular point, a character, in the subject string. Character classes are denoted by brackets [...], with the set (class) of characters to be... Sign in to see full entry.

Page: << First  < Previous  .. 14  15  16  17  18  19  20  21  Next > Last >> 

Headlines (What is this?)

Referrals - About Us - Press - Terms of Use - Privacy Policy - Conduct Policy
Copyright © 2017 Shaycom Corporation. All rights reserved.