public
String getComment() {
String patternString = ""(?:/\\*(?:[^*]|(?:\\*+[^*/]))*\\*+/)"";
Pattern pattern = Pattern.compile(patternString);
Matcher matcher = pattern.matcher(this.dataFile);
if (matcher.find()) {
System.out.println(matcher.group(0));
}
return "";
}
String patternString = ""(?:/\\*(?:[^*]|(?:\\*+[^*/]))*\\*+/)"";
Pattern pattern = Pattern.compile(patternString);
Matcher matcher = pattern.matcher(this.dataFile);
if (matcher.find()) {
System.out.println(matcher.group(0));
}
return "";
}
No comments:
Post a Comment