Hi guys,
I am struggling with regular expression to count how many characters does a string contains.
I am using Match command which should output an array of characters.
These are my commands in the debugger:
BrightScript Debugger> ra = createObject("roRegex", "(a)", "")
BrightScript Debugger> ? ra.Match("ha |fg d a a aa a a |")
a
a
As you can see it only outputs 2 "a" characters and an empty character.
My idea was to get count() of the array.
How can I match characters or is there any better way for this?
Many thanks