teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

6

Pattern (Java Platform SE 7 ) 日本語版

2018/07/13 23:46

投稿

think49
think49

スコア18194

answer CHANGED
@@ -40,5 +40,6 @@
40
40
 
41
41
  - [Search and Replace - Rhythm Software](https://rhmsoft.com/qedit/search.html#Regex)
42
42
  - [Pattern (Java Platform SE 7 )](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)
43
+ - [Pattern (Java Platform SE 7 ) 日本語版](https://docs.oracle.com/javase/jp/7/api/java/util/regex/Pattern.html)
43
44
 
44
45
  Re: LUCIA さん

5

Pattern (Java Platform SE 7 ) 日本語版

2018/07/13 23:46

投稿

think49
think49

スコア18194

answer CHANGED
File without changes

4

(.+)

2018/07/13 23:46

投稿

think49
think49

スコア18194

answer CHANGED
@@ -32,7 +32,7 @@
32
32
  - [QuickEdit テキストエディター - Google Play のアプリ](https://play.google.com/store/apps/details?id=com.rhmsoft.edit)
33
33
 
34
34
  ```
35
- 検索: ^(.*)$
35
+ 検索: (.+)
36
36
  置換: <p>$1</p>
37
37
  ```
38
38
 

3

markdown

2018/07/13 13:07

投稿

think49
think49

スコア18194

answer CHANGED
@@ -1,7 +1,9 @@
1
1
  ### ★テスト★
2
2
 
3
+ ```
3
4
  検索: ^|$
4
5
  置換: ★
6
+ ```
5
7
 
6
8
  ### <p>テスト</p>
7
9
 
@@ -9,24 +11,34 @@
9
11
 
10
12
  そういう場合は、**1回で置換**します。
11
13
 
14
+ ```
12
15
  検索: ^(.*)$
13
16
  置換: <p>\1</p>
17
+ ```
14
18
 
15
19
  しかし、Jotaでは `\`, `$` がメタキャラクタではないようなので、この方法はおそらく使えません。
16
20
  Jota作者に正規表現による置換処理で変数にキャプチャする方法がないか質問して下さい。
17
21
  なければ、要望を出すのもいいと思います。
18
- https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja
19
22
 
23
+ - [FAQ - よくある質問 - Aquamarine Networks.](https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja)
24
+
25
+ > #### Jotaで何かおかしい時は、
26
+ > アンドロイドマーケットのレビューコメントに何か書いても作者は対応いたしません。
27
+ >
28
+ > 問題の解決を望むのであれば、作者にメールしてください。
29
+
20
30
  ### 他のテキストエディタを使う
21
31
 
22
- QuickEdit
23
- https://play.google.com/store/apps/details?id=com.rhmsoft.edit
32
+ - [QuickEdit テキストエディター - Google Play のアプリ](https://play.google.com/store/apps/details?id=com.rhmsoft.edit)
24
33
 
34
+ ```
25
35
  検索: ^(.*)$
26
36
  置換: <p>$1</p>
37
+ ```
27
38
 
28
39
  使用できる正規表現パターンはJavaに準じるので、一通りは使えそうです。
29
- https://rhmsoft.com/qedit/search.html#Regex
30
- https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
31
40
 
41
+ - [Search and Replace - Rhythm Software](https://rhmsoft.com/qedit/search.html#Regex)
42
+ - [Pattern (Java Platform SE 7 )](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)
43
+
32
44
  Re: LUCIA さん

2

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

2018/07/13 11:44

投稿

think49
think49

スコア18194

answer CHANGED
@@ -17,4 +17,16 @@
17
17
  なければ、要望を出すのもいいと思います。
18
18
  https://sites.google.com/site/aquamarinepandora/home/jota-text-editor-ja/faqja
19
19
 
20
+ ### 他のテキストエディタを使う
21
+
22
+ QuickEdit
23
+ https://play.google.com/store/apps/details?id=com.rhmsoft.edit
24
+
25
+ 検索: ^(.*)$
26
+ 置換: <p>$1</p>
27
+
28
+ 使用できる正規表現パターンはJavaに準じるので、一通りは使えそうです。
29
+ https://rhmsoft.com/qedit/search.html#Regex
30
+ https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
31
+
20
32
  Re: LUCIA さん

1

<p>テスト</p>

2018/07/13 03:35

投稿

think49
think49

スコア18194

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