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
Converting RTF to PDF on the fly.
Powerpoint 2003 - in Vista -
Entourage email signature set up
Outlook won't open .pptx attachment directly
Enteprise Application Documentation Application
Exchange 2007 mail relay
How do I add rows to a datagridview based upon a For Each statement in VS2008?
Checkpoint VPN Site to Site Issue - encryption failure: Unknown SPI: 0xb41565ee for IPsec packet.
Adding one cell to the bottom of a named range defined byan OFFSET
Set site as read only to everyone