Regular expression patterns to lowercase

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Chris Morris
Version: 4.0.0245
Avatar
Hi this question has probably been asked before but how is it possible to automatically convert a defined regular expression patterns to lowercase in a dynamic language?
<RegexPatternGroup TokenKey="IdentifierToken" Style="UserDefinedIdentifierStyle"  PatternValue="{AlphaMacro}({WordMacro})*" />
So I would like to automatically convert all IdentifierToken's to lowercase.

eg. AAA would automatically become aaa when the user types in text to the Syntax Editor.

Regards,

Chris.

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Chris,

There isn't a built-in way to convert regex patterns to another case. That feature only works with explicit patterns right now. Perhaps you could just process the KeyTyped event and look for this case in code and change it as necessary.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.