I have the following pattern,
and I wish to extract only a portion of it, i.e., the highlighted portions have to be trimmed off.
I am facing an issue when trying to detect the A and AX using Lookbehind. It tells me that the quantifier has to be fixed, so I am not able to zero into A while, I can do it easily for CT and AX.
Help would be most appreciated, thanks in advance!
Can you try the following?
HI @Yoichi ,
Thank you for your fast response, this works like a charm but I forgot to mention one more point,
CT, A, AX are all prefixes while R and whatever comes after that is a Subfix.
X and Y is not fixed in size, which is why I decided to go for that approach.
Also, I only need whats inbetween the Prefixes and Subfixes which come in varying formats
I will show few more examples:
Is there any way to look Ahead of AX|A|CT and look behind R?
How about the following?
Or the following might be better if there is no R in target string.
Thank you so much @Yoichi -san!
I really appreciate it!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.