Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Re: Regex: Limiting Scope without capturing results

Skip Montanaro
Posts: n/a

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:


Reply With Quote
Gordon Chapman
Posts: n/a
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.

Reply With Quote

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