This link has been bookmarked by 277 people . It was first bookmarked on 30 Mar 2006, by yc c.
-
27 Dec 11
-
13 Apr 11
-
01 Mar 11
-
17 Jan 11
-
26 Nov 10
-
14 Jul 10
-
12 Jun 10
-
10 Jun 10
-
02 Jun 10
-
27 May 10
-
24 May 10
-
14 May 10
-
02 Apr 10
Andrey SluzhivoyPython regex tutorial from Andrew Kuchling.
[via Endeavour tweet] -
15 Mar 10
-
08 Jan 10
-
05 Jan 10
Brooke Smithp = re.compile('[a-z]+')
python regular_expressions development home project-iView2Lightroom
-
26 Dec 09
-
16 Nov 09
-
15 Nov 09
-
24 Oct 09
-
30 Sep 09
-
26 Sep 09
-
22 Sep 09
brockmoellerThe syntax for a named group is one of the Python-specific extensions: (?P<name>...). name is, obviously, the name of the group. Except for associating a name with a group, named groups also behave identically to capturing groups. The MatchObject methods
-
19 Sep 09
-
08 Sep 09
-
04 Sep 09
-
28 Aug 09
-
04 Aug 09
-
24 Jul 09
-
20 Jul 09
-
17 Jul 09
-
15 Jul 09
-
11 Jul 09
-
10 Jul 09
-
01 Jul 09
-
29 Jun 09
-
17 Jun 09
-
05 Jun 09
-
20 May 09
-
12 May 09
-
07 May 09
-
30 Apr 09
-
18 Apr 09
-
16 Apr 09
-
02 Apr 09
-
25 Mar 09
-
14 Mar 09
Alec Schueler"This document is an introductory tutorial to using regular expressions in Python with the re module. It provides a gentler introduction than the corresponding section in the Library Reference."
-
10 Mar 09
Claire CJSIt's so much easier in perl!
IsPictureExtension = re.compile(r"\.(jpg|gif|bmp|png|ico)$") #Python
FacebookTitle = IsPictureExtension.sub("",FacebookTitle)
vs
FacebookTitle =~ s/(jpg|gif|bmp|png|ico)\.jpg$//; #Perl -
05 Mar 09
-
11 Feb 09
-
non-capturing group: (?:...)
-
refers to the number of the group there's naturally a variant that uses the group name instead of the number.
-
replacement can also be a function
-
parsing HTML or XML with regular expressions is painful
-
Use an HTML or XML parser module for such tasks.
-
-
04 Feb 09
-
30 Jan 09
-
11 Jan 09
-
08 Jan 09
-
03 Jan 09
-
15 Dec 08
-
11 Dec 08
-
09 Dec 08
-
30 Nov 08
-
28 Nov 08
-
24 Nov 08
-
03 Nov 08
-
30 Oct 08
-
25 Oct 08
-
15 Oct 08
-
03 Oct 08
-
19 Sep 08
-
09 Sep 08
-
25 Aug 08
-
09 Aug 08
-
11 Jul 08
-
08 Jul 08
-
07 Jul 08
-
01 Jul 08
-
10 Jun 08
-
08 Jun 08
-
06 Jun 08
-
02 Jun 08
-
29 May 08
-
22 May 08
-
20 May 08
-
19 May 08
-
18 May 08
-
16 May 08
-
12 May 08
-
08 May 08
-
29 Apr 08
-
13 Apr 08
-
09 Apr 08
-
31 Mar 08
-
23 Mar 08
-
22 Mar 08
-
20 Feb 08
-
11 Feb 08
-
09 Feb 08
-
06 Feb 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.