Escaping a period (.)

J

John Mcleod

Hello all,
I'm in my 4 month of Ruby on Rails and had a question about escaping
special characters.
How do I escape a period(.)?

ie (John F. oobar)

I wish to change the period to an ASCII representation.

Thank you for any help.

JohnM
 
M

Marnen Laibow-Koser

John said:
Hello all,
I'm in my 4 month of Ruby on Rails and had a question about escaping
special characters.
How do I escape a period(.)?

ie (John F. oobar)

I wish to change the period to an ASCII representation.

The period is an ASCII character. It has no special meaning outside of
regexps, and needs no escaping except in that context.
Thank you for any help.

JohnM


Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top