Results 1 to 2 of 2
- 01-25-2012, 08:00 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 1
- Rep Power
- 0
Help with unicode regular expression
Hi,
I'm looking for regular expression where String consists of a mixture of unicode letters and numerical digits only, with at least one of each.
The closest I got to is Java String: "^[\\p{L}\\p{N}]+$" The problem is, this still allows if the string is entirely numbers or entirely letters, so strings like "1234567" or "abcdef" still match.
Does anyone know how to fix this?
Thanks for your help,
Sri
- 01-25-2012, 09:01 PM #2
Re: Help with unicode regular expression
Cross posted and already answered: Regular expression help with unicode (Java in General forum at JavaRanch)
Another cross post: https://forums.oracle.com/forums/thr...readID=2337867
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Regular Expression Help
By niketanand in forum Advanced JavaReplies: 1Last Post: 06-24-2011, 04:56 PM -
regular expression
By ehsansad in forum New To JavaReplies: 8Last Post: 03-18-2011, 02:23 PM -
regular expression
By prof.deedee in forum JDBCReplies: 3Last Post: 02-19-2010, 11:15 AM -
regular expression
By QkrspCmptPop in forum Advanced JavaReplies: 8Last Post: 01-20-2010, 03:55 AM -
regular expression for unicode
By tharhan in forum Advanced JavaReplies: 0Last Post: 04-01-2008, 10:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks