<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,6 +42,9 @@ Start by requiring FakeWeb:
   Net::HTTP.get(URI.parse(&quot;http://example.com/test2&quot;))
   =&gt; FakeWeb is bypassed and the response from a real request is returned
 
+You can also call &lt;tt&gt;register_uri&lt;/tt&gt; with a regular expression, to match
+more than one URI.
+
 === Replaying a recorded response
 
   page = `curl -is http://www.google.com/`
@@ -105,30 +108,6 @@ the URIs:
     http.request(req)  # =&gt; &quot;Authorized&quot;
   end
 
-=== Registering URI patterns with regular expressions
-
-  FakeWeb.register_uri(%r|http://example.com(:\d+)?/test/\d+|, :string =&gt; &quot;Response to a patterned URI!&quot;)
-  Net::HTTP.get(URI.parse(&quot;http://example.com/test/1&quot;))
-  =&gt; &quot;Response to a patterned URI!&quot;
-
-  FakeWeb.registered_uri?('http://example.com/test/25')
-  =&gt; true
-
-  Net::HTTP.get(URI.parse(&quot;http://example.com/test/not_a_number&quot;))
-  =&gt; FakeWeb::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://example.com:80/test/not_a_number
-    from ./lib/fake_web/ext/net_http.rb:53:in `request'
-    from /opt/local/lib/ruby/1.8/net/http.rb:945:in `request_get'
-    from /opt/local/lib/ruby/1.8/net/http.rb:380:in `get_response'
-    from /opt/local/lib/ruby/1.8/net/http.rb:543:in `start'
-    from /opt/local/lib/ruby/1.8/net/http.rb:379:in `get_response'
-    from /opt/local/lib/ruby/1.8/net/http.rb:356:in `get'
-    from (irb):19
-    from :0
-
-  FakeWeb.registered_uri?('http://example.com/test/not_a_number')
-  =&gt; false
-
-
 === Clearing registered URIs
 
 The FakeWeb registry is a singleton that lasts for the duration of your</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -51,9 +51,9 @@ module FakeWeb
   # Register requests using the HTTP method specified by the symbol +method+
   # for +uri+ to be handled according to +options+. If you specify the method
   # &lt;tt&gt;:any&lt;/tt&gt;, the response will be reigstered for any request for +uri+.
-  # +uri+ can be a +String+ or a +URI+ object. +options+ must be either a
-  # +Hash+ or an +Array+ of +Hashes+ (see below) that must contain one of these
-  # two keys:
+  # +uri+ can be a +String+, +URI+, or +Regexp+ object. +options+ must be either
+  # a +Hash+ or an +Array+ of +Hashes+ (see below), which must contain one of
+  # these two keys:
   #
   # &lt;tt&gt;:body&lt;/tt&gt;::
   #   A string which is used as the body of the response. If the string refers</diff>
      <filename>lib/fake_web.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b9d378c8a2757f9d3c454c1c83a6e23c7a21db55</id>
    </parent>
  </parents>
  <author>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </author>
  <url>http://github.com/chrisk/fakeweb/commit/16d74d33097ab69d093cf63380c19198fc18b77c</url>
  <id>16d74d33097ab69d093cf63380c19198fc18b77c</id>
  <committed-date>2009-06-24T00:38:43-07:00</committed-date>
  <authored-date>2009-06-24T00:38:43-07:00</authored-date>
  <message>Further doc updates for regex support; remove repetitive section in README</message>
  <tree>a810e232b491dfa35b99f4005b63be6885068af8</tree>
  <committer>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </committer>
</commit>
