title: Laravel Regex Match Url with JPG not working
body: <p>I at <a href="http://www.regexr.com/" rel="nofollow noreferrer">http://www.regexr.com/</a> match a regex that needed for laravel 's regex validation.
  validate the url end with jpg/gif/png file.</p>
  
  <p><code>/(http|https):\/\/(www\.)?[\w-_\.]+\.[a-zA-Z]+\/((([\w-_\/]+)\/)?[\w-_\.]+\.(png$|gif$|jpe?g$))/ig</code>
  <img src="https://i.stack.imgur.com/nM5Pd.png" alt="&#39;regex&#39;">
  But when i put my code, it throw me an <code>preg_match(): No ending delimiter '/' found</code> error.</p>
  
  <p>here are my validation rule</p>
  
  <pre><code>$rules  = [
              'title'             =&gt; 'required|min:3',
              'description'       =&gt; 'required|min:3',
              'url'               =&gt; 'required|regex:/(http|https):\/\/(www\.)?[\w-_\.]+\.[a-zA-Z]+\/((([\w-_\/]+)\/)?[\w-_\.]+\.(png$|gif$|jpe?g$))/ig',
            ];
  </code></pre>