Skip to main content
Question

Find chracter on a string variable, and select from there

  • October 25, 2022
  • 2 replies
  • 46 views

Hello, I have a String Variable that contains a route Path, for example C:\MainFolder\SubFolderExample1\FinalFolder

What I need is to find in that variable the last "\" and from there to the end assign to other variable. For Example:

 

Let´s say I have "V_Path" and "V_Out"

 

where:

 

Table 

Thanks in advance for your help!

2 replies

Forum|alt.badge.img+7
  • Navigator | Tier 3
  • October 26, 2022

Reverse the string first. Then use 'extract' to get text before the first \. then reverse again.


Great!, Thanks a lot!