On 03/24/2017 08:36 PM, Timo Paulssen wrote:
I seem to recall you asked about performance recently

the regex engine has a significant overhead. Your regex is equivalent to

    $Terminal.contains('xterm' | 'linux')

though of course if you only test this once at the beginning of the
program, you can ignore that.


Hi Timo,

   In this program, the test only goes off one to
six times, so not an issue.

   Butttttttttt I have a habit of testing strings
inside of loops and I really can see a use for
this!  Thank you!

May I presume that

   $Terminal.contains('xterm' & 'linux')

is a logical AND (both must be in the string)?

-T

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to