Web Design Tutorials and Articles

By Chrysanthus - About Me - E-mail this page - Add to My Favorites - Add to Blog List - See other blogs in Computers & Internet

Wednesday, April 8, 2009

Building a Regular Expression in Perl

Regular Expressions in Perl for the Novice – Part 6 Introduction This is the sixth part of my series, Regular Expressions in Perl for the Novice. 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 talk about what is called Backtracking, and then we look again at the x modifier. Steps required to build a Regex These are the steps required to build a regex: - Specify the task in... Sign in to see full entry.

Regex Modifiers in Perl

Regular Expressions in Perl for the Novice – Part 5 Introduction This is the fifth part of my series, Regular Expressions in Perl for the Novice. 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 modifier for this. There are modifiers to do other things. We shall learn some of them in this part of the series. The i Modifier By default,... Sign in to see full entry.

Regex Groupings in Perl

Regular Expressions in Perl for the Novice – Part 4 Introduction This is the fourth part of my series, Regular Expressions in Perl for the Novice. In this part of the series, I explain regex Grouping and Capturing in Perl. 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 (guitarist is good)/ “guitarist is... Sign in to see full entry.

More Regular Expression Patterns in Perl

Regular Expressions in Perl for the Novice – Part 3 Introduction This is the third part of my series, Regular Expressions in Perl for the Novice. In this part of the series, we continue to analyze patterns in Perl Regular Expressions. Matching Repetitions In the available 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 single character repeating itself. There are quantifier... Sign in to see full entry.

Regular Expression Patterns in Perl

Regular Expressions in Perl for the Novice – Part 2 Introduction This is the second part of my series, Regular Expressions in Perl for the Novice. In this part of the series, we start analyzing patterns in Perl 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 available string. Character classes are denoted by brackets [...], with the set (class) of characters... Sign in to see full entry.

Headlines (What is this?)