s4

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 diff
     1.1 --- a/s4-blog.sh	Wed Jul 22 13:25:22 2015 +0900
     1.2 +++ b/s4-blog.sh	Wed Jul 22 13:26:31 2015 +0900
     1.3 @@ -164,7 +164,7 @@
     1.4  	      -e 's|,\[/a\],|</a>|' \
     1.5  	      -e 's/,n,/<br>/g' -e "s|,i,|$imgs|" \
     1.6  	      -e "s|<TR>\(<TD>\)|<TR id=\"$aid\">\1|" \
     1.7 -	      -e "s|^href=\([-A-Za-z0-9,.:/~_%#&+?]*\)|<a &>\1</a>|g" \
     1.8 +	      -e "s|^href=\([-A-Za-z0-9,.:/~_%#&+?]*\)|<a &>\1</a>|" \
     1.9  	      -e "s|\(<TR.*>\)\(<TD>\),e,|\1\2$link|"
    1.10  select
    1.11    coalesce((select ",e," from article where id='$aid' and author='$user'),"")