MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Help_Pattern_Matching

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14820] Help_Pattern_Matching
  • From: Jim Leary <jimleary at home.com>
  • Date: Wed, 18 Nov 1998 01:29:25 -0500
  • Organization: @Home Network
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
        I am just now first exploring Mathematica. Its primitives are
stupendous. It will do what I mainly need very well. HOWEVER..

I do text processing in perl. I tried to  see how to to some simple text
processing in Mathematica but could not see how to do it nicely or at
all. In many pattern matching languages there is a special symbol for
the start and end of a pattern( ^ and $ respectively).
How does one do the analogous thing in Mathematica? Similarly, there is
a symbol matching exactly [a-zA-Z0-9], an alphanumeric character (\w in
perl). Again, how do you do this in Mathematica?

If anyone can give me some advice or pointers, I would appreciate it.

                     Thanks,                            Jim Leary



  • Prev by Date: Re: How Mathematica do Interpolation?
  • Next by Date: Re: Levy Distribution
  • Previous by thread: Re: Mechanical Systems Question
  • Next by thread: Modifying the Mathematica menus