Re: [Tutor] confusions about re module

2011-05-01 Thread naheed arafat
ya.you'r right. left it accidentally.thanks. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] confusions about re module

2011-05-01 Thread Peter Otten
naheed arafat wrote: > someone please tell me why i'm getting this output? > specially the 'e3%' ! ! ! import re re.findall('([\w]+.)','abdd.e3\45 dret.8dj st.jk') > ['abdd.', 'e3%', 'dret.', '8dj ', 'st.', 'jk'] > > I am getting the same output for the following too.. re.findall(r

[Tutor] confusions about re module

2011-04-30 Thread naheed arafat
someone please tell me why i'm getting this output? specially the 'e3%' ! ! ! >>> import re >>> re.findall('([\w]+.)','abdd.e3\45 dret.8dj st.jk') ['abdd.', 'e3%', 'dret.', '8dj ', 'st.', 'jk'] I am getting the same output for the following too.. >>> re.findall(r'([\w]+.)','abdd.e3\45 dret.8dj st.