質問編集履歴

2

誤字修正

2015/09/17 03:07

投稿

sudoless
sudoless

スコア8

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  ```lang-php
36
36
 
37
- $text = preg_replace('/http:\S+\.jpg/', '<img src= "$0">', $text);
37
+ $replace_text = preg_replace('/http:\S+\.jpg/', '<img src= "$0">', $text);
38
38
 
39
39
  ```
40
40
 

1

タイプミスを修正

2015/09/17 03:07

投稿

sudoless
sudoless

スコア8

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  ```lang-php
36
36
 
37
- $text = preg_replace('/http:\S+\.jpg/', '<img src= "$0">', $_text);
37
+ $text = preg_replace('/http:\S+\.jpg/', '<img src= "$0">', $text);
38
38
 
39
39
  ```
40
40