Jump to content
UBot Underground

scraping a string of text?


Recommended Posts

I've been staring ubot like an idiot for about 2 hours now stuck on a hang up.

 

Breaking it down, I have the following :

 

Open file > with a variable attached to it.

 

I want to take that variable and parse it for the file name/extension ie remove everything bolded C:\Users\name\Desktop\folder\example.txt and leave just the file name, but do so in such a way that it doesn't matter how whats in front of the file name. Anyone have a solution to this?

 

edit

Managed to get a response in the skype group.

In case anyone needs an example for future reference

set(#scrapedfilename, $replace regular expression(#file, "^.+\\\\", $nothing), "Global")

 

Basically sets the new variable name, removes all the stuff mentioned in the above and leaves just the file name.

 

Please delete the other thread, it created a duplicate somehow.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...