preg_match(): No ending delimiter '/'
<p>I have tested and implemented regex in laravel but it show me the error. Please look into this</p>

<p>EmployerSignupRequest.php</p>

<pre><code>'ephone'   =&gt; 'required|regex:/^[((\+)|0)[.\- ]?[0-9][.\- ]?[0-9][.\- ]?[0-9]+$/',
</code></pre>

<p>and i am getting this error.</p>

<p>preg_match(): No ending delimiter '/' found' in /var/www/html/jobma/vendor/laravel/framework/src/Illuminate/Validation/Validator.php:1370</p>

<p>when i run this in php, This is working fine</p>

<pre><code>&lt;?php
    $subject = "+91-9041742722";
    $pattern = '/^[((\+)|0)[.\- ]?[0-9][.\- ]?[0-9][.\- ]?[0-9]+$/';
    preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
    print_r($matches);
?&gt;
</code></pre>