changeset 35:894f93ef24fe

g flag is meaningless because regexp is anchored at the bol
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 22 Jul 2015 13:26:31 +0900
parents 77e2aeb2d7ad
children 2c392d4c2a36
files s4-blog.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Wed Jul 22 13:25:22 2015 +0900
+++ b/s4-blog.sh	Wed Jul 22 13:26:31 2015 +0900
@@ -164,7 +164,7 @@
 	      -e 's|,\[/a\],|</a>|' \
 	      -e 's/,n,/<br>/g' -e "s|,i,|$imgs|" \
 	      -e "s|<TR>\(<TD>\)|<TR id=\"$aid\">\1|" \
-	      -e "s|^href=\([-A-Za-z0-9,.:/~_%#&+?]*\)|<a &>\1</a>|g" \
+	      -e "s|^href=\([-A-Za-z0-9,.:/~_%#&+?]*\)|<a &>\1</a>|" \
 	      -e "s|\(<TR.*>\)\(<TD>\),e,|\1\2$link|"
 select
   coalesce((select ",e," from article where id='$aid' and author='$user'),"")

yatex.org