Closed GoogleCodeExporter closed 8 years ago
Hi, these are actually functions, so you call them without the "p." like this:
pyp "rekeep('asdf')"...they are analogous to the keep and lose functions, which
are similar to grep.
the p.re() works on an instance of p, and returns the matching string...so you
can use multiple versions on the same line...so this is a more granular
approach.
Hope that helps.
t
Original comment by tobyro...@gmail.com
on 5 May 2012 at 6:34
Original comment by tobyro...@gmail.com
on 5 May 2012 at 6:55
Thanks!
Are you planning to implement groups with p.re() so you can return match
groupings within the regexp?
Original comment by recko...@gmail.com
on 5 May 2012 at 7:07
please try the beta, you can now supply an option arg to p.re()..like
p.re(*7*,2) will pick out group 2.
t
Original comment by tobyro...@gmail.com
on 2 Jun 2012 at 4:44
works great!
Thanks!
Original comment by recko...@gmail.com
on 3 Jun 2012 at 1:39
Original issue reported on code.google.com by
recko...@gmail.com
on 5 May 2012 at 6:27