[tbc-users] Re: simple string replace

2010-01-20 Thread AndrewB
HAHA Thankyou :) On Jan 20, 4:14 pm, Scott Henninger wrote: > Andrew, the '.' matches anything, so your expression will replace all > characters with "" (try "z" instead for fun). > > So you need to escape the '.' as in: >   SELECT * >   WHERE >   {  LET (?String := "Something with... ellipses...

[tbc-users] Re: simple string replace

2010-01-20 Thread AndrewB
HAHA Thankyou :) On Jan 20, 4:14 pm, Scott Henninger wrote: > Andrew, the '.' matches anything, so your expression will replace all > characters with "" (try "z" instead for fun). > > So you need to escape the '.' as in: >   SELECT * >   WHERE >   {  LET (?String := "Something with... ellipses...

[tbc-users] Re: simple string replace

2010-01-20 Thread Scott Henninger
Andrew, the '.' matches anything, so your expression will replace all characters with "" (try "z" instead for fun). So you need to escape the '.' as in: SELECT * WHERE { LET (?String := "Something with... ellipses...") LET (?x := smf:regex(?String, "\\.", "")) } smf:regex uses the X