hi, im wondering how to go about cutting up strings into smaller strings based on keywords. For example i have the following string
\device\lrbtgureutghilutrgiltg\device\bvgliuerbgio ubtwbrtibwg\device\vblerobrviobvu
At the moment it is all stored in one string however I want to break it down so that it becomes
string1 = \device\lrbtgureutghilutrgiltg
string2 = \device\bvgliuerbgioubtwbrtibwg
string3 = \device\vblerobrviobvu
Each string begins with "\device" and ends with "\device" as it could just be random input up until the next "\device" entry in the string.
Is there a way to spilt this string up? I thought it mite get more complex as the string ends and begins with the same criteria so i thought this may cause some problems. Any pointers would be appreciated
thank you