title: How to specify long url patterns using Regex so that they follow PEP8 guidelines
body: <p>I have a long url pattern in Django similar to this:</p>
  
  <pre><code>url(r'^(?i)top-dir/(?P&lt;first_slug&gt;[-\w]+?)/(?P&lt;second_slug&gt;[-\w]+?)/(?P&lt;third_slug&gt;[-\w]+?).html/$',
      'apps.Discussion.views.pricing',
  </code></pre>
  
  <p>Definitely it doesn't follow PEP8 guide as the characters are more than 80 in a single line. I have found two approach of solving this:</p>
  
  <p>The first one (using backslash):</p>
  
  <pre><code>   url(r'^(?i)top-dir/(?P&lt;first_slug&gt;[-\w]+?)/(?P&lt;second_slug&gt;[-\w]+?)'\
         '/(?P&lt;third_slug&gt;[-\w]+?).html/$',
         'apps.Discussion.views.pricing',
  </code></pre>
  
  <p>The second one - using ():</p>
  
  <pre><code> url((r'^(?i)top-dir/(?P&lt;first_slug&gt;[-\w]+?)/(?P&lt;second_slug&gt;[-\w]+?)',
        r'/(?P&lt;third_slug&gt;[-\w]+?).html/$'),
        'apps.Discussion.views.pricing'),  
  </code></pre>
  
  <p>Both of them break by Regex. Is there a better approach to solve this issue. OR Is it a bad practice to write such long Regex for urls.</p>