develooper Front page | perl.beginners | Postings from March 2002

RE with not

Thread Next
From:
rnoory
Date:
March 16, 2002 06:54
Subject:
RE with not
Message ID:
002d01c1ccfc$914493a0$0100a8c0@houda
Greetings... anyone can help write the regular expression to transform the input in 
to the desired output.  I need help to write the regular expression. 
Thanks

S:[^c]cing # not ccing
R: ?? 
S:ccing; #ccing
R:?? 
S:[^c]c  #not CC
R: ??    
S:cc #cc
R:??      

Input
danc danccing
dancc danccing
danc dancing 
danccing danc
dancing dancc


Output
danc<1> danccing <2>
dancc<2> danccing<2>
danc<1> dancing<1> 



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About