Posted 8 years ago by Jerry
Version: 3.1.0225
Avatar
I am trying to get a pattern match on different parts here.

Example: Something.AnotherSomthing.FinalSomething = x

I have one ExplicitPatternGroup for something and it works

I have set the lookahead for AnotherSomething to be [^Something\.]
I have set the lookahead for FinalSomething to be [^AnotherSomething\.]

But It only matches on Something? Any Idea's, by the way, I really have never used regex.

Tx

Comments (2)

Posted 8 years ago by Jerry
Avatar
A matter of simple confusion. Lookbehind is to the right of the pattern and lookahead is to the left. Once i made that connection it was easy.
Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jerry,

Glad you got it working... as a side note:

[^ ... ] sets mean match any character except those in the set. We have a documentation topic that walks through the regex syntax and it's pretty much the same as .NET regex syntax so you should be able to find a lot of intro articles on .NET regex syntax on the web.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.