How do I transform a hex strings first 7 bit to a number within an item definition?
An regex returns a string of hex values that contains the information, e.g.: (hex=BA00… > bin=1011101000000000… > first7bit=1011101 > dec=93). The goal is to have the 93 as value in the number item.
Can I use a transform script in the item definition, but how to combine regex and transform?
If you can code the extraction of the 1’s and 0’s from the String and convert them to a number in JavaScript then you can use the JavaScript transform. Otherwise, you cannot do it within the item definition and will have to do the above in a Rule.