Learning Regex (Was: Is it just me, or is there a reason for it?)

Steve Lamb grey at dmiyu.org
Sun Aug 15 13:56:21 UTC 2010


On 08/15/2010 06:46 AM, Karl Larsen wrote:
>       Code is now written in text. I can not see Regex useful to anyone
> other than code writing.

     Just because you cannot see it does not mean it isn't applicable.  Here 
is the concise definition of regex:
"In computing, regular expressions, also referred to as regex or regexp, 
provide a concise and flexible means for matching strings of text. . ."

     Emphasis on the last portion, flexible means for MATCHING STRINGS OF 
TEXT.  In other words it is useful to anyone who does manipulation of parsing 
of text.  My greatest use of regex wasn't in my Perl programming or my Python 
programming, it was in my text editing in vim, in parsing text logs and in 
efficiently reading newsgroups.

-- 
          Steve C. Lamb         | But who can decide what they dream
        PGP Key: 1FC01004       |      and dream I do
-------------------------------+---------------------------------------------




More information about the ubuntu-users mailing list