MathGroup Archive 2012

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

Search the Archive

Re: How to coerce a string pattern to an ordinary pattern?


I don't really understand the question but I suspect the answer is you are 
either looking for:

1. Verbatim[...]

or

2. Print["\"Hello"] , i.e., focus on \"




________________________________________
From: Andrew DeYoung [adeyoung at andrew.cmu.edu]
Sent: Tuesday, January 17, 2012 03:28
To: mathgroup at smc.vnet.net
Subject: [mg124395] How to coerce a string pattern to an ordinary pattern?

Hi,

How do I coerce a string pattern to an ordinary pattern?  For example,
I might want to select those elements of a list that are pairs of
strings, where the first string matches the string pattern
"["~~___~~"]".

Thank you so much for your time.

Andrew DeYoung
Carnegie Mellon University



  • Prev by Date: Problems with tracedepth
  • Next by Date: How to set up Intel C++ Composer XE for Mathematica on windows 7?
  • Previous by thread: How to coerce a string pattern to an ordinary pattern?
  • Next by thread: Re: How to coerce a string pattern to an ordinary pattern?