GeneStrelkov
4 years agoQrew Cadet
Extract Text Between 2 special characters
I've been going through several posts here all morning, trying to find how I would extract text that's between 2 characters, and I can't seem to figure out.
I have the following field text:
<?xml version="1.0" encoding="utf-x"?> <string xmlns="http://www.tempuri.org/">1234</string>
I need to extract the number that's between 2nd ">", and 3rd "<" (in the example, that number is 1234, and it always changes, and after 9999, it will turn into 5 character number.)
The closest I could come up, was:
Part([URL],3,">")
But the result comes out to:
1234</string
And I don't need "<" and anything that is after.
------------------------------
Gene Gene
------------------------------
I have the following field text:
<?xml version="1.0" encoding="utf-x"?> <string xmlns="http://www.tempuri.org/">1234</string>
I need to extract the number that's between 2nd ">", and 3rd "<" (in the example, that number is 1234, and it always changes, and after 9999, it will turn into 5 character number.)
The closest I could come up, was:
Part([URL],3,">")
But the result comes out to:
1234</string
And I don't need "<" and anything that is after.
------------------------------
Gene Gene
------------------------------
- Try this
Left(Right(NotRight([My Field],1),">"),"<")
It should work as long as your field always ends with >99999</string>
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------