|
Posted by Petr Vileta on February 11, 2008, 1:06 am
Please log in for more thread options Uri Guttman wrote:
>
>> I have Perl 5.6.1 installed and I use Komodo 3.5 which internaly use
>> Perl 5.8 ( I don't know subversion). In Komodo IDE is Regexp Toolkit
>> to test regular expressions.
>
>> abcdef 123
>
> and if you explain your goal in english and not just with an example
> of output you will get better answers. there are several ways to get
> this sort of result.
>
OK, I try to explain my goal using my poor english ;-)
I have string (e.g. street name, human name etc.) and some stupid people are
used to put space after aech single character to accentuate this words. I want
to store these string to database but I can tidy-up unnecessary spaces. From:
a b c d e f 123
I deend to get
abcdef 123
In original string where no space should be there is 1 space and where 1 space
should be there are 2 or more spaces.
What is the right regexp to do it in 1 step?
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)
Please reply to <petr AT practisoft DOT cz>
|