I am interested to see if such regex can be created? For example, this regex will match exactly two of preceding token: ^((pi|e|x|([-]?[0-9]*[.]?[0-9]+)){2})
, and I'd like to match such string as long as it has two or more of something inside.
//want to recognize
//piex14.3 -- will see pi, e, x, number of type double
//14e -- will see number of type double, e
//12.5pi -- will see number of type double, pi
//ex -- will see e, x