$is hex

Allows you to check whether the string is valid hexadecimal colour code or not.


Example

Running this code will check if "FF7F5Z" is a hex color. As shown in the alert box, it is not a valid hex color.

alert($plugin function("Data and Files Automation.dll", "$is hex", "FF7F5Z"))

Running this code will check if "FF7F51" is a hex color. As shown in the alert box, it is a valid hex color.

alert($plugin function("Data and Files Automation.dll", "$is hex", "FF7F51"))

Was this helpful?

Previous Article

$is folder exist

Next Article

$is interned