ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] regular expressions in Python
by Kevin Altis other posts by this author
Jul 8 2002 7:47PM messages near this date
RE: [Pythoncard-users] regular expressions in Python | [Pythoncard-users] frustrating copy and paste behavior in code editor
It turns out there is also a handy redemo.py tkinter app in
Python22\Tools\Scripts which lets you play with regular expressions
interactively. I would like to port this to PythonCard, but I'm not sure how
to go about highlighting multiple blocks of text in a single field. I
emailed Robin and Neil to see if they have any ideas, using the HtmlWindow
component would be a fallback solution.

ka

>  -----Original Message-----
>  From: pythoncard-users-admin@[...].net
>  [mailto:pythoncard-users-admin@[...].net]On Behalf Of Kevin
>  Altis
>  Sent: Monday, July 08, 2002 11:11 AM
>  To: pythoncard-Users
>  Subject: [Pythoncard-users] regular expressions in Python
> 
> 
>  I started looking into the use of a regular expression for the
>  "Match whole
>  words only" requirement for the Find and Replace dialogs. I
>  thought I would
>  go ahead and list the resources I've found so far in case anyone
>  else dives
>  into this. It doesn't appear that I can't simply use a word boundary check
>  \b pattern, so a more complex search is required. I may go ahead
>  and post to
>  comp.lang.python since a Google groups search didn't turn up an answer.
> 
>  Any regular expression experts in the house?
> 
>  re module - Regular expression operations
>  http://www.python.org/doc/current/lib/module-re.html
> 
>  Regular Expression HOWTO
>  http://py-howto.sourceforge.net/regex/
> 
>  The O'Reilly book, Mastering Regular Expressions
>  http://www.oreilly.com/catalog/regex/
>  There is a sample chapter online as well as samples to download. Perl 5
>  regular expressions are supposed to be relatively easy to port to Python
>  from what I've read so far.
> 
>  Some Python Cookbook results
> 
>  http://aspn.activestate.com/ASPN/search?query=regex&section=PYTHON
>  CKBK&type=
>  Subsection
> 
>  http://aspn.activestate.com/ASPN/search?query=regular+expression&s
ection=PYT
HONCKBK&type=Subsection

ka



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Kevin Altis
Magnus Lie Hetland
Kevin Altis
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved