I have a header bar with a caption property that contains words and numbers. I want to extract the a 10 digit number from the caption string.
I've read through the documentation however I still don't understand how to implement this. The examples also don't seem to help my understanding of the syntax.
I've saved the caption property into a variable. Then created a new instance of the RegExp and tried to match method to return the numbers. I've tried loads of variations but can't seem to get it to work.
re = HIUtils.RegExpr ([0-9]);
This is the latest I've tried however I've tried RegExp new instance and I'm just not getting the way to set it up.
What I did for something similar was to use aqString.Trim to get all the spaces out of the string and then loop through it a character at a time looking for a digit. That will get you the position of the first digit. Then you can use aqString.Substring to get the 10 digits.
I never found a way to use the regular expressions for this. Looks like you can use them to compare but not for string manipulation.