473,473 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

who can give me the detailed introduction of re modle?

the re module is too large and difficult to study

i need a detaild introduction.

May 19 '06 #1
9 1020
softwindow wrote:
the re module is too large and difficult to study

i need a detaild introduction.

That's not the kind of question that's likely to get a useful response
from an all volunteer newsgroup community, even one with as friendly a
reputations as this one.

Here's my suggestion:

Read the manual page at http://docs.python.org/lib/module-re.html, then
try to apply it to a specific problem you'd like to solve with regular
expressions. Any problems you run into at that point will be quite
specific. If you list the problem you tried to solve, your solution
attempt, and what failed, you will likely get lots of useful answers here.

But you have to take the first step. P.S. The re module is really not
all *that* difficult.

Gary Herron
May 19 '06 #2
easy and convenient way to get a good introduction for any module
[especially if ur stuck and dont have internet connectivity]:

1. start python interpreter
$ python

2. import the module and ask it for help :-)
import re
help(re)


-vaibhav

May 19 '06 #3
thanks for your advice!

:)

May 19 '06 #4
On 18 May 2006 22:50:24 -0700, softwindow <so********@gmail.com> wrote:
the re module is too large and difficult to study

i need a detaild introduction.


<http://gnosis.cx/publish/programming/regular_expressions.html>

--
Cheers,
Simon B,
si***@brunningonline.net,
http://www.brunningonline.net/simon/blog/
May 19 '06 #5
softwindow wrote:
the re module is too large and difficult to study

i need a detaild introduction.

http://www.amk.ca/python/howto/regex/

Kent
May 19 '06 #6
softwindow wrote:
the re module is too large and difficult to study
Too bad.
i need a detaild introduction.


That's fine. Then write it. Or pay someone to do so.

Just for the record : that's the only answers you would have get on most
usenet groups. Hopefully, c.l.py is a very friendly and tolerant newsgroup.

Seriously, do yourself a favour, read this:
http://www.catb.org/~esr/faqs/smart-questions.html

HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
May 19 '06 #7

softwindow wrote:
the re module is too large and difficult to study
it's powerful, takes a little time to work with. Make yourself aware
of the VERBOSE switch, RE debuggers in komodo and Wing, string
functions/methods and when you need a full parser, also

http://www.awaretek.com/tutorials.html#regular
http://en.wikibooks.org/wiki/Programming:Python_Strings
http://www.regexlib.com/Default.aspx
http://www.regular-expressions.info/python.html
http://www.unixreview.com/documents/...1037388368795/

http://diveintopython.org/regular_ex....html#re.intro
i need a detaild introduction.


You have everything you need

May 19 '06 #8
softwindow wrote:
the re module is too large and difficult to study

i need a detaild introduction.


I don't know what your experience has been so far, but I have almost no
programming experience beyond what I've taught myself, and I found the
re module very easy to understand after reading the docs. Just go
through each page slowly. Start with the syntax, then read about the
functions and objects (and their methods) and write a few REs yourself.

I hate to say it, but it's actually kind of fun! :) And not nearly as
difficult as I thought it would be when I first encountered REs.

You can also consult this place: http://www.regular-expressions.info/
May 19 '06 #9
"softwindow" <so********@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
the re module is too large and difficult to study

i need a detaild introduction.


Sorry, but your post just sounds too much like it's in the "I'm too lazy to
figure
this out for myself, just spoon-feed me the answer" category.

How do you know you need the re module? Is there a particular problem you
are trying to solve? Have you made any effort on your own before just
posting this open-ended request? How did it go?

Is it possible that your problem could be solved with something less exotic,
perhaps some combination of str.find() and str.split()? It may be simpler
to wield a rapier string function than to haul out the chainsaw of re's.

Yes, re's are mysterious and cryptic, and there is a whole cottage industry
of books and websites out there to help you compose your own special re
string, filled with '?'s, '.'s, '+'s, '*'s, and many, many '\'s.

Are you familiar with Google? Try searching for, um, "Python re module" or
"Python regular expressions". You are bound to find many pages of
introductory, intermediate, expert, exemplary, and diabolical material.

-- Paul
May 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott Carter | last post by:
Can anyone point me to an introduction of creating installers with VS.Net? I currently need to create one for a windows service, but I'd also like to find some info about creating installers for...
14
by: Cletis Tout | last post by:
http://www.codeproject.com/cpnet/introtomono1.asp Introduction to Mono - Your first Mono app By Brian Delahunty The first in a series of articles about Mono. This article explains how to...
0
by: Jack | last post by:
Hi, I have the following problem. I have a main data entry form which has a link to a detailed data entry form. The value of the link in the main form is the sum total of all the line items...
1
by: Xiaoshen Li | last post by:
Dear All, I am relatively new to C(But I have computer science background and know some other programming languages). I am wondering if anyboby can recommend me some C books or websites. I...
3
by: Minh Khoa | last post by:
Please give me more information about delegate and its usage? Why do i use it and when?
14
by: Alf P. Steinbach | last post by:
Not yet perfect, but: http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01.pdf http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01_examples.zip To access the table of...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
29
by: Martin Schmied | last post by:
Dear folks I'm looking for good sites/material for this topic: Introduction to programming, using Javascript. So, not introduction to programming *in" Javascript. Well, I guess this would be...
5
by: Konfused | last post by:
Hello Not sure whom to ask this question - but thought will ask anyway. I have friends who are members of a blog site. Users read the blogs and post their comments- Unfortunately someone enters...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.