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

How to use regex in where #122

Open
wartw opened this issue Aug 15, 2024 · 1 comment
Open

How to use regex in where #122

wartw opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@wartw
Copy link

wartw commented Aug 15, 2024

How to use regex in where
I need to output all IP addresses containing pppoe_network card

@wartw wartw added the question Further information is requested label Aug 15, 2024
@EvilFreelancer
Copy link
Owner

EvilFreelancer commented Aug 15, 2024

Hi! Operator ~ (like) can be used for filtering, you may try something like this:

$query->where('address', '~', 'pppoe_network');

UPD. I'm not sure if it's PCRE compatible, see this and this for details.

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

No branches or pull requests

2 participants