Hello,
In a column I have data like
M:\bep\BU3\cat5\Features\BU3-Feates\2-PDAC\Airmodules\A__BLOWELEMENTS\BLDC_BLOWEOUNT\SF_BLDC_BLOWER-MOUNT_V7
I just want to extract data “A__BLOWELEMENTS”.
It may be start with B__ or C__ or D__. Wanted to extract data from between backslash.
I tried with this " regexExtract($Location$,“(?<=\).?__.?(?=\))”) but it will not working
HansS
2
Hi @Ramakant_Patil
Maybe not the most elegant solution, but did you try the Cell Splitter node?
gr. Hans
1 Like
Hello @Ramakant_Patil
It’s hard to guess with a single case as it could not represent the whole data set…
You can test the following code within a ‘String Manipulation’ node. It works for the given example:
regexReplace($Location$, ".+[\\\\]+?([ABCD][_].+?)\\\\.+", "$1")
BR
3 Likes
hello, thanks for the reply.
regexReplace($Location$, “.+[\\]+?([ABCD][_].+?)\\.+”, “$1”) — This solution works partially. Only did for the A__ , B__, C__, D__ and not for others.
I modified the formula with regexReplace($Location$, “.+[\\]+?([ABCDEFG][_].+?)\\.+”, “$1”)----Now it works perfectlly.
Thanks for the solution.
2 Likes
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.