how to Replace a new line character "\n" in a string with space or ,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skumari
    New Member
    • Feb 2008
    • 2

    how to Replace a new line character "\n" in a string with space or ,

    Hello

    I am new user of this Forum.Can anyone help me regarding "How tp Replace a new line character "\n" in a string with space or ,"
    Using Javascript.

    Please reply me ASAP.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by skumari
    Hello

    I am new user of this Forum.Can anyone help me regarding "How tp Replace a new line character "\n" in a string with space or ,"
    Using Javascript.

    Please reply me ASAP.

    string.replace( '\n', ' ');

    Comment

    • skumari
      New Member
      • Feb 2008
      • 2

      #3
      Thanks for your reply.

      Comment

      Working...