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. Advertisements

  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. Advertisements

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:
    4,058
    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:
    621
    Ravikanth[MVP]
    Aug 21, 2003
  3. Luther Miller
    Replies:
    2
    Views:
    2,198
    Luther Miller
    Aug 27, 2003
  4. Showjumper
    Replies:
    3
    Views:
    429
    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,624
    Arsen V.
    May 10, 2004
  6. Guoqi Zheng
    Replies:
    4
    Views:
    13,418
    Guoqi Zheng
    Jun 3, 2004
  7. Ersin Gençtürk
    Replies:
    1
    Views:
    7,519
    jmohanty2006
    Sep 25, 2007
  8. tshad
    Replies:
    9
    Views:
    676
    tshad
    Jun 10, 2005
Loading...