[Tutor] String question.

2006-04-12 Thread Carlos Benevides
All, I have a problem/question I'd like to pose to you guys on how best to accomplish the following. I have a string that will vary in size, what I would like to do is split into n size chunks. I am also not sure how best to represent the chunks. For example, say I have a len(s) = 200 chars

[Tutor] Quick question,

2006-04-07 Thread Carlos Benevides
Hi, Can someone tell me what the r before the expression means, as in "re.compile(r'(\.exe|\.zip|\.pif|\.scr|\.ps|\.pdf|\.ppt)$')"? I've seen regular expressions both ways, and I've seen them work with or without the r. Just wondering what it does, or if it makes a difference. Thanks. ___