Reputation: 1361
I have a very long MySQL regex query that I would like to split into multiple lines but I haven't figured out how.
Short version:
select * from table.ips where ipip not regexp '^4\.|^8\.|^12\.|^18\.' order by ipID;
Multi-line non-working version:
select * from table.ips where ipip not regexp '
^4\\.|
^8\\.|
^12\\.|
^18\\.
' order by ipID;
Thanks in advance.
Upvotes: 1
Views: 661