itgirl Active Member Licensed User Longtime User Mar 6, 2015 #1 Hello guys so i want to vaildate a user name and im using some regular expression B4X: ^(?=.{8,20}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._]+(?<![_.])$ which is working great but the problem is with B4X: [a-zA-Z0-9._] i want it to accept unicode characters so it can work with Russian and French .... any ideas guys ??
Hello guys so i want to vaildate a user name and im using some regular expression B4X: ^(?=.{8,20}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._]+(?<![_.])$ which is working great but the problem is with B4X: [a-zA-Z0-9._] i want it to accept unicode characters so it can work with Russian and French .... any ideas guys ??
TheJinJ Active Member Licensed User Longtime User Mar 6, 2015 #2 http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters Any use? Upvote 0
http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters Any use?
itgirl Active Member Licensed User Longtime User Mar 7, 2015 #3 TheJinJ said: http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters Any use? Click to expand... i tried it before with no luck Upvote 0
TheJinJ said: http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters Any use? Click to expand... i tried it before with no luck
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2015 #4 You are looking for the Unicode letter class. Try this: B4X: [\p{L}\d_] Don't forget this handy tool: http://basic4ppc.com:51042/regex_ws/index.html Upvote 0
You are looking for the Unicode letter class. Try this: B4X: [\p{L}\d_] Don't forget this handy tool: http://basic4ppc.com:51042/regex_ws/index.html
itgirl Active Member Licensed User Longtime User Mar 8, 2015 #5 Erel said: You are looking for the Unicode letter class. Try this: B4X: [\p{L}\d_] Don't forget this handy tool: http://basic4ppc.com:51042/regex_ws/index.html Click to expand... how is that you are able to fix everything thanks alooot it's working exactly how it's supposed to. and yeah online regex tool was my crime scene for all the tests to get this working Upvote 0
Erel said: You are looking for the Unicode letter class. Try this: B4X: [\p{L}\d_] Don't forget this handy tool: http://basic4ppc.com:51042/regex_ws/index.html Click to expand... how is that you are able to fix everything thanks alooot it's working exactly how it's supposed to. and yeah online regex tool was my crime scene for all the tests to get this working