Lou Hernsen wrote:
: and if I want to include certain german umlutted vowels like
: ö and ä i would add them like this?
: $string =~ tr/-_a-zA-Z0-9öä//cd;
:
What happened when you tested it?
: then what does this do? (from parsing SDTIN)
:
: $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pac
To:
Sent: Saturday, June 24, 2006 4:15 PM
Subject: RE: Regex Help.
> Sara wrote:
>
> : Need help to remove EVERY thing (non-alphabets, symbols,
> : ASCII codes etc) from a string except for a-zAZ, 0-9,
> : dash and underscore.
> :
> : $string =~ s/??
>
>
> Read
Sara wrote:
: Need help to remove EVERY thing (non-alphabets, symbols,
: ASCII codes etc) from a string except for a-zAZ, 0-9,
: dash and underscore.
:
: $string =~ s/??
Read perlop: Quote and Quote-like Operators
$string =~ tr/-_a-zA-Z0-9//cd;
HTH,
Charles K. Clarkson
--
Mobile H
On Sun, 2006-25-06 at 00:14 +0500, Sara wrote:
> Need help to remove EVERY thing (non-alphabets, symbols, ASCII codes etc)
> from a string except for a-zAZ, 0-9, dash and underscore.
>
> $string =~ s/??
>
> Thanks,
> Sara.
>
By dash, I assume you mean ASCII character 0x2D.
English version
Sara wrote:
I am looking for a regex which would extract the intials from a
string i.e.
str = "Doe, John L.L.M";
$str =~ /(^(\w)).*?((\s)(\w)).*?((\s)(\w))/;
$initial = $1.$2.$3;
print "$initial";
The above code is not serving my purpose.
String constants: There would be always 3 words (obviou
Well only you can be the judge if you are doing it right. But what that
expression tells me is:
$string matches, starting with either ( a word, a dot, a hyphen, a at sign,
a colon, a plus sign, a question mark, a bang) one or more times, and
ending in one of the afore mentioned.
So if that is wh