MathGroup Archive 2008

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

Search the Archive

Re: error with regular expression within package

On 3/13/08 at 4:31 AM, ramiro.barrantes at (ramiro) wrote:

>This must be very simple.  But with package below, I get the
>following error:

><< test.m Syntax::stresc: Unknown string escape \w.


>BeginPackage["testing`"] test::usage="test[t]" Begin["`Private`"]


Change the above to be


If you look at the documentation for RegularExpression you will
see all of the examples for classes of characters use a double backslash.



  • Prev by Date: Passing a CompiledFunction to mathlink C function
  • Next by Date: Re: Numbering graphs and tables
  • Previous by thread: Re: error with regular expression within package
  • Next by thread: question on Cases with elements that might be strings