[OS X TeX] ifthen and regular expressions

Friedrich Vosberg fvosberg at mac.com
Tue May 15 14:13:22 CEST 2007


Morning.

Does someone of You know how to get an ifthenelse switch that is TRUE  
if the expansion of the given macro contains a given string. For  
example:

\def\string{court}
\def\pattern{Royal High Court of Westminster}

\ifthenelse{contains{\string}{\pattern}{%
   TRUE
}{%
   FALSE
}

--
»Wir sind Papst!« BILD am 20. April 2005
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list