Does Homey/Homeyscript not support regex?

Check this script