File « matcher « Java Regex Q&A

Home
Java Regex Q&A
1.Development
2.find
3.group
4.Match
5.matcher
6.number
7.Operation
8.parse
9.Pattern
10.replace
11.validation
12.word
Java Regex Q&A » matcher » File 

1. Matching // * in a file using Matcher and Pattern objects    coderanch.com

Well this is supposed to be regular expression question But I am trying to use java here. Want to make a java program to read file and from that on cmd line print all lines that contain a // (Commeted code ) with escape characters I Am able to get it working for // Pattern p2 = Pattern.compile("\\/\\/"); Matcher m2 = ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.