What would be the best way to detect if a pattern corresponds to a string pattern ?
An invalid string pattern p would lead to an error in StringMatchQ[string, p] for example.
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
|
At Faysal's behest: there's the (undocumented) function
|
|||||||||
|
|
|||
|
|

System`Dump`validStringExpressionQ[]. – J. M.♦ Nov 20 '12 at 9:46