Java code to generate random string based on regex. I tried generex library , but it's not giving exact output. For example:
Generex generex = new Generex("^[6-9]\\d{9}$");
System.out.println(generex.random());
Output is : ^8677547981$ while i was expecting output to be 8677547981.It seems generex is not able to handle special characters like "^" , "$" etc.
Can someone pls help?
\\$