Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regex switching problem

by blakem (Monsignor)
on Oct 20, 2001 at 01:57 UTC ( #120163=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @out = split(\s(AND|OR)\s/i,$string);
    
  2. or download this
    my @out = split(/\s(AND|OR)\s/i,$string);
    
  3. 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%"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2022-12-05 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?