A simple way to find out if the security in question is a regular, perpetual, or futures pair.
This reads the data of the security's description and sees if the word perpetual or futures is mentioned.
The method to check if a string has the letters we seek was first introduced by MichelT.
Thank you for checking this out and I hope this helps unlocking new hidden potential.