Ron Savage schreef:

> [attribution repaired] Ruud:
>> [attribution repaired] Ron:
>>> [attribution repaired] Ron:

>>>> Nope. Method db_vendor() extracts the vendor's name from the
>>>> connect string passed to DBI, so I don't see how it could return
>>>> that :-))).
>>>
>>> And anyway, I control the config file this data comes from, so
>>> spaces won't appear there...
>>
>> OK, so your "/(?:mysql|Pg)/" should have been more like
>> "/:(?:mysql|pg):/i".
>
> Nope, wrong again.
>
> You are evading the implications of the above explanation of the
> method, which I repeat below:
> "Method db_vendor() extracts the vendor's name from the  connect
> string"
>
> I did not say it extracts the colons, and I did not say it returns
> the connect string with the embedded colons, and I did not say ...
> etc.

Whatever anchors are there, should be used, as I already pointed at in
my first reaction. Since, you haven't supplied a correction to your
code. So we're back at:

  /\A(?:mysql|pg)\z/i
  /\A(?i:mysql|pg)\z/

-- 
Affijn, Ruud

"Gewoon is een tijger."

Reply via email to