471,350 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

regex that is equivalent to perl's syntax

hi,
does python's re library have a similar capability of the perls
regular expression to
search for pattern that appears a variable number of times within the
lower and upper bounds given? For example, what is the python's
equivalent to the following perl's search string?
m/^\S{1,8}\.\S{0,3}/
which seeks to find all strings with 8 characters followed by a dot
and then three more characters as in filename.txt

Actually, i need to find a pattern such as ABCDXLMNO with the
character X
repeated 5 to 8 times.

thanks
lee

Nov 12 '07 #1
0 769

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by el_roachmeister | last post: by
17 posts views Thread by clintonG | last post: by
3 posts views Thread by a | last post: by
3 posts views Thread by gisleyt | last post: by
3 posts views Thread by William Gill | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.