Help me in String parsing

i have this UiElement stored in a variable , I want to parse it such a way that i get "D:\\portfolio\\uipath.txt" from line 3. Anybody good in string parsing ??,Help me

@ASHISH_SINGH2
can you share full string?
Try this Regex:

  1. Use the “Assign” activity to set up the following variables:
  • uiElementValue (String): Assign the value of your UiElement to this variable.
  • pattern (String): Set the regex pattern to "(?<=\").*?(?=\")".
  • extractedPath (String): This variable will hold the extracted path.
  1. Add the following “Assign” activity to perform the regex extraction:
  • Left side: extractedPath
  • Right side: System.Text.RegularExpressions.Regex.Match(uiElementValue, pattern).Value

@ASHISH_SINGH2
If path is not present in between inverted commas then Try this one.