----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, April 12, 2006 2:10 AM
Subject: Re: Regexp question
In a message dated 4/11/2006 7:29:18 P.M. Eastern Standard Time,
[EMAIL PROTECTED] writes:
Hi,
I was trying to build a regexp that removed all vowels from a word
except the first character. So
hello -> hll
Apple -> Appl
hi steve --
how about
perl -we "my $s = 'aspire apple hello easy uvula'; $s=~ s/\B[aeiou]//gi;
print $s"
Hi Bill, this fail. Try this
perl -we "my $s = 'WilliamaWalters'; $s=~ s/\B[aeiou]//gi; print $s"
Result is "WllamWltrs" istead of "WllmWltrs" :-)
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs