Microsoft
Software
Hardware
Network
Question : pattern matching regular expression
I need to do pattern matching
to filter the following strings
org.gnd.xx.zz"/> is acceptable
org.gnd.xx"/> is acceptable
org.gnd.xx.zz.ddd"/> is also acceptable and in general if the number of tokens (separated by .) must be 3 or more
Answer : pattern matching regular expression
Try
1:
Pattern p = Pattern.compile("(?:\\w+\\.){2,}(?:\\w+);\"/>");
Random Solutions
need help with select statement
How to add safe senders in Outlook 2003 Junk filter using GPO
Conversion failed when converting from a character string to uniqueidentifier.
Do I have to be on domain to FTP?
Make an Exception to Folder Redirect Group Policy Rule
How can I prevent my object being overwritten in a for loop?
Keep file ownership when using Rsync
Red "X" appears in the icon for a mapped network drive in Windows 7, even though you can successfully access the drive
Cisco Routers - IP SLA notifications
0xefbfbd of encoding "UTF8" has no equivalent in "WIN1252"