Tom Copeland's Recent Posts

RSS Feeds

« Who owns what RubyGem on RubyForge? | Main | RubyForge now on PostgreSQL 8.3 »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451d3c069e2010536d39e3a970c

Listed below are links to weblogs that reference Sphinx, Riddle, and escaping special characters:

Comments

You missed the : character

@brian, thanks! Added that and ")" as well.

Hy Thanks For such a nice post

But i face problem

A="A' rtyee"
rt= A.gsub(/(:|@|-|!|~|&|'|\(|\)|\\|\|)/) { "\\#{$1}" }
rt= "A\\' subrtr"

it is adding two backtrace instead of one , can u help on this

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.