Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
I found a minor issue with the RegEx engine for SE. I have the following text that I wanted to match and tag the expression inside the parenthesis:
Bug_Fields(fieldName).Value
To match this, I entered the following regular expression:
Bug_Fields\([^\)]+\)\.Value
This matches the expression just fine, but it doesn't tag the value inside parenthesis for me to use in the replace operation. The following RegEx was used to add the tagged expression:
Bug_Fields\({[^\)]+}\)\.Value
When executing the "Find" operation on this text, I get the following error:
An invalid character '[' was found in the range specification following '_30'.
This should be pretty easy to dup in the sample application. I used this same RegEx in Visual Studio (both tagged and untagged expressions), and it worked fine.

Comments (2)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
This works:
Bug_Fields\(([^\)]+)\)\.Value


Actipro Software Support

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
Sorry... I was thinking that SE worked with the syntax supported by Visual Studio, so please disregard. Everything works as designed. :)
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.