Hi, i'm after some help trying to split the following string.
c=qportFotroEFForFBoUBopBFoNSZL3b3bHo0hLboUtqB
Basically i have a string which is encoded, and in the middle of this string there is a segment i want to retreive. This value is a name.
What i want to be able to do is rip that name out and insert another name. There is a pattern to this, that i have sported and thats starting from the end, and working your way in, there is a marker of "oo" and in the middle of "oo" is the name.
so going by the above you have "o0hLbo", "oo" being the markers and then "0hLb" being the name.
What i have noticed if, using a rule searching for the first "o" and then the second "o", it must be done from the end working your way in. as you will notice "o" is used else where at the start of the string.
c=qportFotroEFForFBoUBopBFoNSZL3b3bHo
The above is the string broken down.
Idealy what i would like is the string split into $stringpart1, $name, $stringpart2
The only way i could think of is using a for next loop looking for the "o" as markers. is there a simpler way for this.
cheers