Re: Help on String to array !
John W. Krahn wrote:
Don Piven wrote:
No need for a loop:
my @arr = $hex =~ /[[:xdigit:]]{2}/g;
Also, you don't use capturing parentheses in your regular expression so
$1 will always be empty.
So much for my proofreading :-P You're right, of course.
.
Relevant Pages
- Re: sed expression to strip comments
... An address is a regular expression to select a line. ... together select a paragraph and its following empty line. ... The delete-command carries the not-modifier '!', ... (comp.lang.misc) - Re: sed expression to strip comments
... An address is a regular expression to select a line. ... together select a paragraph and its following empty line. ... The delete-command carries the not-modifier '!', ... Okay what I have got so far is:- ... (comp.lang.misc) - =?utf-8?Q?=E7=AD=94=E5=A4=8D:_the_question_of_one_program?=
... But from the view of SA,I have not understand how to get the hidden processes in os linux. ... You can see signs of "ancient perl" in this expression, ... Capturing parentheses in a splitregular expression returns the ... (perl.beginners) - =?utf-8?Q?=E7=AD=94=E5=A4=8D:_the_question_of_one_program?=
... You can see signs of "ancient perl" in this expression, ... Capturing parentheses in a splitregular expression returns the ... I agree wholeheartedly that this is one crappy Perl ... (perl.beginners) - Regular Expressions and Empty Strings
... Frequently I want a value to be either a valid pattern or empty. ... example a Zip code must be 5 digits or may be empty. ... the Regular Expression "\d" to test for exactly 5 digits. ... (microsoft.public.dotnet.languages.vb) |
|