2017-03-09 9 views
0

私はASP.netアプリケーションを作成し、ナゲットパッケージマネージャを使用してsaxon-heをインストールしました。 n flagを使用して標準.NET正規表現エンジンを使用して、ネイティブの.NET正規表現構文を使用したいとします。これは、.NETプラットフォームでのみサポートされています。私は次のエラーを取得していますがsaxon .net 9.7正規表現の構文エラー:認識できないフラグ 'n'

{"Syntax error in regular expression: unrecognized flag 'n'"} 

答えて

0

マイケルからサクソンメーリングリスト上:

The code to support the "n" flag is there in the product, though I'm not sure whether it has been recently tested.

Note that the flag must be separated from standard flags by a semicolon, e.g. flags="s;n" or flags=";n".

I think that unlike other Saxon extensions this one is available in HE without a license key.

Note also that you can set the .NET regex engine as your default by setting the configuration parameter " http://saxon.sf.net/feature/defaultRegexEngine " to the value "N".

Michael Kayにセミコロンが問題を修正

関連する問題