in reply to Re^2: regex issue
in thread regex issue

OK, I probably do not undestand what you are trying to match. Can you show several strings that should be matched and several that should not?

Replies are listed 'Best First'.
Re^4: regex issue
by perlNewby (Initiate) on Feb 17, 2012 at 09:01 UTC

    moritz got it for me thanks though. In case you still are wondering, I wanted "sort by mem", " sort by MEM", "sort by CPU ", etc. to work(no quotations obviously, was just putting them there to show that spaces are not supposed to matter). I wanted it case insensitve, space insensitive which it was, apparently the "" around sort was messing it up. I put them in because sort turned red like it was using it as the sort function which I obviously did not want so I was trying to force it to see it as a string. Apparently it does not matter because as moritz showed me, it works fine. Thanks agian