I m using following reg exp for validating the name of function
([a-zA-Z]\w+)[^\w]
ex addNumber is a valid function , while now for changed requirements
user can also write local:addNumber .
I want to modify this regular expression in such a way so that it can allow single occurence of local:.
I tried but can’t make a perfect one.
Doesn’t using (local:)?([a-zA-Z]\w+)[^\w] fix your problem?
Edit:
The regex in C# is actually (local\:)?([a-zA-Z]\w+)[^\w], because :(colon) is a special character that has to be escaped. Thank you Russ C