This link has been bookmarked by 30 people . It was first bookmarked on 26 Jan 2008, by ken meece.
-
14 Dec 11
-
14 Apr 11
-
12 Mar 11
-
17 Oct 10
-
match a pattern within parentheses
-
-
28 Sep 10
-
( ) Groups a series of pattern elements to a single element. When you match a pattern within parentheses, you can use any of $1, $2, ... later to refer to the previously matched pattern. $string1 = "Hello World "; if ($string1 =~ m/(H..).(o..)/) { print "We matched '$1' and '$2' "; }Output:
We matched 'Hel' and 'o W';
-
-
08 Mar 10
-
01 Jul 09
-
30 May 09
-
13 Aug 08
-
16 May 08
-
26 Jan 08
ken meeceA regular expression ( also "RegEx" or "regex" ) is a string that is used to describe or match a set of strings, according to certain syntax rules.
Despite this variability, and because regular expressions can be difficult to both explain and understand without examples, this article provides a basic description of some of the properties of regular expressions by way of illustration. -
13 Apr 07
Peter HanleyA regular expression ( also "RegEx" or "regex" ) is a string that is used to describe or match a set of strings, according to certain syntax rules. The specific syntax rules vary depending on the specific implementation, programming language, or library i
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.