regular express



I have a string looks like:

"hello, world! perl programming is
great"

How I can use substitute and regular express to replace multiple space to a
single space, that is, make this string as:

"hello, world! perl programming is great"

Thanks in advance.


.



Relevant Pages

  • Re: regular express
    ... > How I can use substitute and regular express to replace multiple space ... > to a single space, that is, make this string as: ... BTW they are called regular expressions :-) Chris. ...
    (perl.beginners)
  • Re: pumping lemma (third try)
    ... >> you a string not in L. ... >> contradiction and the proof that L isn't regular breaks down. ... > and answering my wannabe trials and questions. ... > there are no adjacent equal substrings. ...
    (comp.theory)
  • Re: pumping lemma (third try)
    ... some string x followed by its reverse.} ... > I will assume that L is regular and therefore the pumping lemma ... > Now I will divide the PL string w into the PL substrings x, ...
    (comp.theory)
  • Re: A repost - Permuting SPACES within a String of words
    ... Then you should check for empty cells array ... Use ubound to find out how many cells your array contains ... > a) where there is no space between any of the words in the string ... > together and the lone word is separated by a single space. ...
    (microsoft.public.excel.programming)
  • Re: pumping lemma (third try)
    ... >> Duncan's comments and put my hands on a new wannabe trial using the ... >> pumping lemma on the problem below. ... I can decompose a string w belonging to L into x, ... >> being regular without that PL applies, ...
    (comp.theory)