Hello Community,
is it possible to return the regEx pattern string of an EReg object once it is instanced?
To become more concrete:
I am resolving a string that consists of integers seperated by one or many none-word-character(s).
var regEx : EReg = ~/([0-9]+)(\W+[0-9]+)+/;
var string = "33#44#22#31";
This
is just a radical simplification. The regular expression check in my
code is a little more complex. And there are different checks to be
done. To keep the procedure a little more simple I would like to re-use
the regEx pattern and complement it with some additional regEx
statements.
It seems the EReg api has no method for that purpose.
So, is it possible to get the part
"([0-9]+)(\W+[0-9]+)+" from the regEx instance as a string?
Kind regards
Michael