Hi, You escape ' with an extra ', giving ''. So your insert would be: insert into test values ('select 1 from mytable where x =''v'' and y = ''q'''); Same in regexps. eg: PHILJ@phil112 > select regexp_replace('foo''foo','''','@') from dual; REGEXP_ ------- foo@foo PHILJ@phil112 > Cheers, Phil On Fri, Mar 16, 2012 at 3:05 PM, Dba DBA <oracledbaquestions@xxxxxxxxx>wrote: > > -- sql is basically 2 parts. inner part gets changes anything between > single quotes to an @(the translate turns the single quote to an @. I was > having trouble passing single quotes to > a regular expression so I just turned the quotes into an @. > > > > -- //www.freelists.org/webpage/oracle-l