I need to extract file from text file located in an UNIX server. As per the need, Regex pattern works well.
[Need to get just file name]
But, CA RA is action is failing with below error -
Same RegEx pattern works in RegEx validation console. Please see below for relevant results -
can you show the action settings please?
Did you put the "/gm" in the regex in your action as well? if so, this probably won't work. the action itself is already parsing each line of the file with the regex, so there is for example no need to put in the multiline modifier.
Why don't you do something like this which is far easier and faster:
Then \2 (the second capture group) will contain the file name.
I suggest you give it a try!
Thanks Michael & Christophe! It's helping me a lot.