Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] Questions

Expand Messages
  • Tom Barron
    ... Get some coffee! :) Your solution will collapse runs of 2 or more blanks to nothing. Single blanks would survive, but any groups of more than one would
    Message 1 of 2 , Jun 20, 2000
      Greg Webster wrote:
      > ...
      > to remove all extra spaces (allow one between each word) I think this might
      > work:
      >
      > $fixed = s/ +//g;
      >
      > (for that one I'm not sure...I just woke up).

      Get some coffee! :) Your solution will collapse runs of 2 or more
      blanks to nothing. Single blanks would survive, but any groups of more
      than one would go away completely. To collapse each run of one or more
      blanks to a single blank, you'd want something like this:

      $fixed = s/ +/ /g;

      tb
    Your message has been successfully submitted and would be delivered to recipients shortly.