andrewst 1 Posted August 29, 2012 Report Share Posted August 29, 2012 I'm trying to get on the 'stuff1' portion from a string that looks like stuff1/stuff2/stuff3 No matter what I do, I end up with 2 elements/groups of stuff1/ and stuff2/ I'd like just stuff1 to be returned (.*?)(\/) is what I use that returns two sets, including the / I don't want Thanks in advance! Quote Link to post Share on other sites
blumi40 222 Posted August 29, 2012 Report Share Posted August 29, 2012 set(#tempfortesting, "stuff1/stuff2/stuff3", "Global") add list to list(%mylist, $list from text(#tempfortesting, "/"), "Delete", "Global")set(#varItem0, $list item(%mylist, 0), "Global")set(#varItem1, $list item(%mylist, 1), "Global")set(#varItem2, $list item(%mylist, 2), "Global") ...aso Quote Link to post Share on other sites
jomark3 25 Posted August 30, 2012 Report Share Posted August 30, 2012 The following returns just stuff1:\w| Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.