Newbie: Chunks..reg. expressions?
Posted: Fri Jun 08, 2007 2:16 am
Hi,
I want to replace the equal signs in a SQL query string with "like" if the word following an equal sign ends in the SQL wildcard character "%".
So:
select * from addresses where lastname = "sm%" and firstname = "k%" and city = "london"
should turn into
select * from addresses where lastname like "sm%" and firstname like "k%" and city = "london"
What is an elegant way to achieve this in Transcript?
TIA,
Kai
I want to replace the equal signs in a SQL query string with "like" if the word following an equal sign ends in the SQL wildcard character "%".
So:
select * from addresses where lastname = "sm%" and firstname = "k%" and city = "london"
should turn into
select * from addresses where lastname like "sm%" and firstname like "k%" and city = "london"
What is an elegant way to achieve this in Transcript?
TIA,
Kai