Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Regex: Limiting Scope without capturing results

Reply
Thread Tools

Re: Regex: Limiting Scope without capturing results

 
 
Skip Montanaro
Guest
Posts: n/a
 
      07-24-2003

Gordon> If I remove the ()s around the string|float|color match it stops
Gordon> matching anything, so is there an alternative to these ? Or a
Gordon> way of telling them to limit the scope of the match without
Gordon> capturing the result ?

Sure, use (?:<pattern>). Full details at 11:

http://www.python.org/doc/current/lib/re-syntax.html

Skip

 
Reply With Quote
 
 
 
 
Gordon Chapman
Guest
Posts: n/a
 
      07-25-2003
Skip Montanaro <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Sure, use (?:<pattern>). Full details at 11:


Thanks guys, exactly what I was after.

G.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
limiting the scope of a variable Thomas Hafner Ruby 8 05-01-2008 04:26 PM
6500: User-Based Rate Limiting AND Total Rate Limiting Patrick Cervicek Cisco 0 08-07-2007 03:07 PM
Limiting search results to a subdirectory Bonnie ASP General 0 04-02-2007 10:00 PM
DataAdapter, limiting results, but getting the total count row. JustinCarmony ASP .Net 1 04-02-2007 07:20 PM
Limiting the scope of css clear: attribute Andrew HTML 11 04-01-2005 01:14 PM



Advertisments