Re: to parse a string



> > I am new in Perl. Here is my question for help.
>
> Then this is a good time to read the posting guidelines for this group
> to learn how you can help yourself, and help others help you.
>
> Please note that "write my code for me" requests are not very popular
> here.

Clearly, this is not what I wanted either; and this is why my sample
question from.

> > Given a string, e.g. "01010123", any sample code to scan it and then
> > find the "2" and "3" are not qualified in the string which requires
> > only "0" and "1"?
>
> Read about character classes and regular expressions:
>
> perldoc perlre
>
> perldoc perlreref
>
> perldoc perlop

I tried them before this email. Thank you anyway; can anybody else let
me know where I can find those kind of good general sample codes?
Thanks.

.



Relevant Pages

  • Re: How to work (?{code})
    ... > I was wondering if someone could explain the proper working of ... I tried the following, in Perl 5.8.5: ... examined by the regexp engine to try to match anything. ... Now, on the other hand, the very next entry in perldoc perlre is: ...
    (comp.lang.perl.misc)
  • Re: How can I pick up those big numbers
    ... what is your criterion for big? ... I would recommend reading the posting guidelines for this group ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: newbie question
    ... Have you read perldoc perlre? ... Have you read the Posting Guidelines that ... see X- headers for PGP signature information ...
    (comp.lang.perl.misc)
  • Re: Problem with ([w ]+?)
    ... In addition, Perl defines the following: ... This is impossible to read and very error prone. ... service by properly parsing HTML: ...
    (comp.lang.perl.misc)
  • Re: "Parallell" substitutions using sed
    ... I found the perl -pe is a very ... flexiable method to accomplish text work. ...
    (comp.unix.shell)