Regex is fine here, but rule and item file parsing is way more strict now in openHAB 2 then it was before. That means that any special character need to be escaped (colons for example). If you go to https://regex101.com/ and enter your regex, you will see a parser error for example.
Use the XPath transformation instead is my recommendation.
Thanks…by adding a \ to the regex in regex101.com … it seemed to work…but as soon as i add a backslash to my item file the whole item file has errors and it ignores my items completely.
so in my item i have
/motionDetectAlarm
changing that to
\/motionDetectAlarm
Yeah that is a longer story actually. You are using an openHAB 1 binding (http), so you must configure it in the item file. But the item file itself does not allow specific characters without escaping them (with a backslash).
So you basically need to double escape ("\\"). This problem will hopefully be gone with http2 in OH 2.5.