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

Regex example #54

Closed
duffybelfield opened this issue Oct 14, 2013 · 3 comments
Closed

Regex example #54

duffybelfield opened this issue Oct 14, 2013 · 3 comments

Comments

@duffybelfield
Copy link

Could you provide a simple Regex example?

@jenssegers
Copy link
Contributor

This should be the same as the original query builder. Try:

$query->where('column', 'like', 'abc%')

@duffybelfield
Copy link
Author

How would this work with a nested array?

"skills" : {
"Turbo Pascal" : {
"order" : 1,
"id" : "21"
},
"Accounting" : {
"order" : 2,
"id" : "715"
},
"Pascal" : {
"order" : 3,
"id" : "12"
},
"javascript" : {
"order" : 4,
"id" : "635"
},
"Assembly" : {
"order" : 5,
"id" : "9"
}
},

$query->where('skills, 'like', 'abc%')?

@jenssegers
Copy link
Contributor

I did not try this, but that should work.

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