32 users online (0 members and 32 guests)  


  Results 1 to 2 of 2

Related

  1. Deleted spaces    Forum: Myspace Forum
    Replies: 5
  2. Replies: 0
  3. Single Page, Multiple Backgrounds?    Forum: Website Scripts Forum
    Replies: 6
  4. Spaces in text AND . . .    Forum: HTML Forum
    Replies: 3
  5. multiple submit buttons in single form    Forum: HTML Forum
    Replies: 7
  1. #1
    tsshobana's Avatar
    New User

    Status
    Offline
    Join Date
    May 2006
    Posts
    1

    reducing multiple spaces in a string to a single space

    suppose if there's a string $a="sdsjk skds sdjsdk asasj kajka sdsdsds"..and if i want to condense all these multiple white spaces to a single white space then is there any function to be used in perl ?

  2. #2
    netroact's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2006
    Posts
    19

    Re: reducing multiple spaces in a string to a single space

    Quote Originally Posted by tsshobana
    suppose if there's a string $a="sdsjk skds sdjsdk asasj kajka sdsdsds"..and if i want to condense all these multiple white spaces to a single white space then is there any function to be used in perl ?
    where do you want the single whitespace?



Tags for this Thread