線上 Java 格式化程式

幫助 教程 編碼庫 檢視 編輯 開發工具
線上圖片最佳化程式
線上 LaTex 編輯器
LaTex 方程編輯器
白板
線上圖片編輯器
線上 XML 編輯器
線上 JSON 編輯器
檔案轉換
更多工具...
撤消
重做
剪下
複製
貼上
刪除
全選
查詢
查詢並替換
編輯器主題
Chrome
Crimson 編輯器
Dreamweaver
Eclipse
Github
Kuroir
Solarized Light
Solarized Dark
XCode
Ambiance
Cobalt
idle Fingers
krTheme
Mono Industrial
Monokai
Terminal
Textmate
Tomorrow
Twilight
Vibrant Ink
字型大小
8px
9px
10px
11px
12px
13px
14px
15px
16px
17px
18px
20px
22px
24px
製表符大小
1
2
3
4
5
6
7
8
軟換行
開啟
關閉
40 字元
60 字元
80 字元
100 字元
120 字元
140 字元
顯示不可見字元
隱藏不可見字元
顯示左邊距
隱藏左邊距
下載
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegexMatches
{
public static void main( String args[] ){

// String to be scanned to find the pattern.
String line = "This order was placed for QT3000! OK?";
String pattern = "(.*)(\\d+)(.*)";

// Create a Pattern object
Pattern r = Pattern.compile(pattern);

// Now create matcher object.
Matcher m = r.matcher(line);
if (m.find( )) {
System.out.println("Found value: " + m.group(0) );
System.out.println("Found value: " + m.group(1) );
System.out.println("Found value: " + m.group(2) );
} else {
System.out.println("NO MATCH");
}
}
}
© 版權所有 2023。保留所有權利。
美化 | upload files 上傳檔案