peskywinnets
Registered User.
- Local time
- Today, 00:07
- Joined
- Feb 4, 2014
- Messages
- 578
Any ideas re an elegant dependable way that I can extract the bit in red out of a text string...
7501243706 For Transaction: 7501021926DSPT21174531807
...in other words when the characters DSPT are found, get everything that follows....so from that long text string, I'd like to end up with DSPT21174531807
the only constant is the DSPT bit ....it probably will be in the same place each time but I can't be sure (hence I'm not sure I can just use a right() function ...ideally what I'd like to do is hunt through the string for the existence of DSPT if located (it won't always be present in the string being tested...only sometimes) get it & all that follows.
7501243706 For Transaction: 7501021926DSPT21174531807
...in other words when the characters DSPT are found, get everything that follows....so from that long text string, I'd like to end up with DSPT21174531807
the only constant is the DSPT bit ....it probably will be in the same place each time but I can't be sure (hence I'm not sure I can just use a right() function ...ideally what I'd like to do is hunt through the string for the existence of DSPT if located (it won't always be present in the string being tested...only sometimes) get it & all that follows.