regular expression

Panayotis Tsiamis ptsiamis at internet.gr
Fri Dec 16 11:00:20 EET 2005


Akiro to proigoumeno pezei mono me 2 '-'
To sostotero an thes na kratiseis string me ena '-':

echo 'axel-m-a---n' |perl -e 'while (<>) { if (! /-+/) {print $_;}}'

Panayotis Tsiamis wrote:

> echo 'axel-m-a--n' | sed 's/--/FOUND/g'|grep -v FOUND
>
> Giati to kalo to palikari xeri kai allo arapi me kalo sapouni!!!
>
>
> axel maroudas wrote:
>
>>
>>> Αυτό δε σου κάνει...
>>>
>>>        -[^-]
>>>  
>>>
>> Distixos den kani. Otan to valo mazi me xaraktires distixos i dio 
>> pavles pernane. px ([a-z]+-[^-][a-z]+)* to axel--mangr to afini na 
>> perasi
>>
>> axelmangr
>>
>> ____________________________________________________________________
>> http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
>> http://www.freemail.gr - free email service for the Greek-speaking.
>>
>>
>
>




More information about the Linux-greek-users mailing list