Escaping a period (.)

Discussion in 'Ruby' started by John Mcleod, Feb 8, 2010.

  1. John Mcleod

    John Mcleod Guest

    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
    --
    Posted via http://www.ruby-forum.com/.
    John Mcleod, Feb 8, 2010
    #1
    1. Advertising

  2. John Mcleod wrote:
    > 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

    --
    Posted via http://www.ruby-forum.com/.
    Marnen Laibow-Koser, Feb 8, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob Johnson
    Replies:
    0
    Views:
    3,761
    Bob Johnson
    Aug 7, 2003
  2. Ravikanth[MVP]

    Automatic logout after elapsed period

    Ravikanth[MVP], Aug 21, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    486
    Ravikanth[MVP]
    Aug 21, 2003
  3. Luther Miller
    Replies:
    2
    Views:
    2,036
    Luther Miller
    Aug 27, 2003
  4. Showjumper
    Replies:
    3
    Views:
    326
    Ken Cox [Microsoft MVP]
    Feb 10, 2004
  5. Arsen V.

    IIS Warm Up Period

    Arsen V., May 5, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    2,381
    Arsen V.
    May 10, 2004
Loading...

Share This Page