Regex Help.

2006-06-24 Thread Sara
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.

Re: Regex Help.

2006-06-24 Thread Mr. Shawn H. Corey
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

RE: Regex Help.

2006-06-24 Thread Charles K. Clarkson
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

Re: Regex Help.

2006-06-24 Thread Lou Hernsen
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; then what does this do? (from parsing SDTIN) $name =~ tr/+/ /; ### I know this replaces +'s for spaces $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($