Jump to content
UBot Underground

Replacing The Tab Character In A List Item


Recommended Posts

I have scraped a web page into a list, but the problem is that each item in the list has two strings separated by a tab character. (I thought they were spaces at first but they're not.)

 

I want to create a new list with all the strings as separate items, so thought that this would work:

 

  set(#innerloopcounter,0,"Global")

            loop($list total(%OriginalList)) {
                add list to list(%NewList,$list from text($list item(%OriginalList,#innerloopcounter),\t),"Delete","Global")
                increment(#innerloopcounter)
            }

 

But the \t for tab character is considered illegal, so don't know what to do next, but think it might have to involve regex...

Any better ideas?

 

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...