回答編集履歴

6

Pattern (Java Platform SE 7 ) 日本語版

2018/07/13 23:46

投稿

think49
think49

スコア18164

test CHANGED
@@ -82,6 +82,8 @@
82
82
 
83
83
  - [Pattern (Java Platform SE 7 )](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)
84
84
 
85
+ - [Pattern (Java Platform SE 7 ) 日本語版](https://docs.oracle.com/javase/jp/7/api/java/util/regex/Pattern.html)
86
+
85
87
 
86
88
 
87
89
  Re: LUCIA さん

5

Pattern (Java Platform SE 7 ) 日本語版

2018/07/13 23:46

投稿

think49
think49

スコア18164

test CHANGED
File without changes

4

(.+)

2018/07/13 23:46

投稿

think49
think49

スコア18164

test CHANGED
@@ -66,7 +66,7 @@
66
66
 
67
67
  ```
68
68
 
69
- 検索: ^(.*)$
69
+ 検索: (.+)
70
70
 
71
71
  置換: <p>$1</p>
72
72
 

3

markdown

2018/07/13 13:07

投稿

think49
think49

スコア18164

test CHANGED
@@ -2,9 +2,13 @@
2
2
 
3
3
 
4
4
 
5
+ ```
6
+
5
7
  検索: ^|$
6
8
 
7
9
  置換: ★
10
+
11
+ ```
8
12
 
9
13
 
10
14
 
@@ -20,9 +24,13 @@
20
24
 
21
25
 
22
26
 
27
+ ```
28
+
23
29
  検索: ^(.*)$
24
30
 
25
31
  置換: <p>\1</p>
32
+
33
+ ```
26
34
 
27
35
 
28
36
 
@@ -32,7 +40,19 @@
32
40
 
33
41
  なければ、要望を出すのもいいと思います。
34
42
 
43
+
44
+
35
- https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja
45
+ - [FAQ - よくある質問 - Aquamarine Networks.](https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja)
46
+
47
+
48
+
49
+ > #### Jotaで何かおかしい時は、
50
+
51
+ > アンドロイドマーケットのレビューコメントに何か書いても作者は対応いたしません。
52
+
53
+ >
54
+
55
+ > 問題の解決を望むのであれば、作者にメールしてください。
36
56
 
37
57
 
38
58
 
@@ -40,23 +60,27 @@
40
60
 
41
61
 
42
62
 
43
- QuickEdit
44
-
45
- https://play.google.com/store/apps/details?id=com.rhmsoft.edit
63
+ - [QuickEdit テキストエディター - Google Play のアプリ](https://play.google.com/store/apps/details?id=com.rhmsoft.edit)
46
64
 
47
65
 
66
+
67
+ ```
48
68
 
49
69
  検索: ^(.*)$
50
70
 
51
71
  置換: <p>$1</p>
52
72
 
73
+ ```
74
+
53
75
 
54
76
 
55
77
  使用できる正規表現パターンはJavaに準じるので、一通りは使えそうです。
56
78
 
57
- https://rhmsoft.com/qedit/search.html#Regex
58
79
 
80
+
81
+ - [Search and Replace - Rhythm Software](https://rhmsoft.com/qedit/search.html#Regex)
82
+
59
- https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
83
+ - [Pattern (Java Platform SE 7 )](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)
60
84
 
61
85
 
62
86
 

2

他のテキストエディタを使う

2018/07/13 11:44

投稿

think49
think49

スコア18164

test CHANGED
@@ -36,4 +36,28 @@
36
36
 
37
37
 
38
38
 
39
+ ### 他のテキストエディタを使う
40
+
41
+
42
+
43
+ QuickEdit
44
+
45
+ https://play.google.com/store/apps/details?id=com.rhmsoft.edit
46
+
47
+
48
+
49
+ 検索: ^(.*)$
50
+
51
+ 置換: <p>$1</p>
52
+
53
+
54
+
55
+ 使用できる正規表現パターンはJavaに準じるので、一通りは使えそうです。
56
+
57
+ https://rhmsoft.com/qedit/search.html#Regex
58
+
59
+ https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
60
+
61
+
62
+
39
63
  Re: LUCIA さん

1

<p>テスト</p>

2018/07/13 03:35

投稿

think49
think49

スコア18164

test CHANGED
@@ -1,7 +1,39 @@
1
+ ### ★テスト★
2
+
3
+
4
+
1
5
  検索: ^|$
2
6
 
3
7
  置換: ★
4
8
 
5
9
 
6
10
 
11
+ ### <p>テスト</p>
12
+
13
+
14
+
15
+ > これが、<p>テスト</p>としたい場合には、文字がそれぞれ違うので、やっぱり2ステップ必要ですよね…?
16
+
17
+
18
+
19
+ そういう場合は、**1回で置換**します。
20
+
21
+
22
+
23
+ 検索: ^(.*)$
24
+
25
+ 置換: <p>\1</p>
26
+
27
+
28
+
29
+ しかし、Jotaでは `\`, `$` がメタキャラクタではないようなので、この方法はおそらく使えません。
30
+
31
+ Jota作者に正規表現による置換処理で変数にキャプチャする方法がないか質問して下さい。
32
+
33
+ なければ、要望を出すのもいいと思います。
34
+
35
+ https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja
36
+
37
+
38
+
7
39
  Re: LUCIA さん