Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation error #1077

Closed
jinmarcus opened this issue Jun 21, 2018 · 2 comments
Closed

validation error #1077

jinmarcus opened this issue Jun 21, 2018 · 2 comments

Comments

@jinmarcus
Copy link

$validation->setRules([
        'mobile' => 'required|regex_match[/^13[0-9]{1}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/]'
    ]
);

run error

ErrorException
preg_match(): No ending delimiter '/' found
@jim-parry
Copy link
Contributor

This sounds like a support issue, which should be raised on our forum.
We use github for bug tracking and work packages.
If you are indeed suggesting this is a bug, then a better bug description would be appropriate.

@jinmarcus
Copy link
Author

'rules' => 'required|min_length[2]|max_length[20]|regex_match[/^(01[2689]|09)[0-9]{8}$/]'
in regex_match
If the ' | ' symbol is contained, it will be truncated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants