- or download this
my @out = split(\s(AND|OR)\s/i,$string);
- or download this
my @out = split(/\s(AND|OR)\s/i,$string);
- or download this
#!/usr/bin/perl -wT
use strict;
...
=OUTPUT
S:something and something else or this thing here
N:tools.description LIKE "%something%" AND tools.description LIKE "%so
+mething else%" OR tools.description LIKE "%this thing here%"