Matt Matijevich wrote:
I am having troubles matching the Vertical Tab character using regular
expressions.

I have a string, I have looped through every character in the string
and printed out the value returned from ord(), and I get 13 for one of
my chars.

I have searched and apparently that is the vertical tab character
(first time I have ever heard of it).  No matter what I try I cant get a
regex to match it.

ord() returns the _decimal_ number 13 (octal 015, hexadecimal x0D) which is the CR (carriage return) character *NOT* the VT (vertical tab) character.



FWIW the C programming language has a "\v" escape sequence for the vertical tab but the Perl programming language does not, nor is the vertical tab included in the "\s" (whitespace) character class in regular expressions.


If you are on Linux you should have the ascii(7) man page to look these things 
up.


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to