--- プログラム ---

BEGIN{

str1="sfa35djrBcdjjjZy7.h52jt/rfu76"

cn=1

# 1
print "No. " cn++
str=str1
print str
gsub(/a35/,"--",str)
print str
print ""

# 2
print "No. " cn++
str=str1
print str
gsub(/[0-9]/,"-",str)
print str
print ""

# 3
print "No. " cn++
str=str1
print str
gsub(/[5-9]/,"-",str)
print str
print ""

# 4
print "No. " cn++
str=str1
print str
gsub(/[abcd]/,"-",str)
print str
print ""

# 5
print "No. " cn++
str=str1
print str
gsub(/[b-f]/,"-",str)
print str
print ""

# 6
print "No. " cn++
str=str1
print str
gsub(/[5-9X-Zb-d]/,"-",str)
print str
print ""

# 7
print "No. " cn++
str=str1
print str
gsub(/[^5-9X-Zb-d]/,"-",str)
print str
print ""

# 8
print "No. " cn++
str=str1
print str
gsub(/j/,"--",str)
print str
print ""

# 9
print "No. " cn++
str=str1
print str
gsub(/j./,"--",str)
print str
print ""

# 10
print "No. " cn++
str=str1
print str
gsub(/j.../,"--",str)
print str
print ""

# 11
print "No. " cn++
str=str1
print str
gsub(/j*/,"-",str)
print str
print ""

# 12
print "No. " cn++
str=str1
print str
gsub(/j+/,"-",str)
print str
print ""

# 13
print "No. " cn++
str=str1
print str
gsub(/^.../,"---",str)
print str
print ""

# 14
print "No. " cn++
str=str1
print str
gsub(/...$/,"---",str)
print str
print ""

# 15
print "No. " cn++
str=str1
print str
gsub(/a|5/,"-",str)
print str
print ""

# 16
print "No. " cn++
str=str1
print str
gsub(/(a3|rq|u7)/,"--",str)
print str
print ""

# 17
print "No. " cn++
str=str1
print str
gsub(/\./,"-",str)
print str
print ""

# 18
print "No. " cn++
str=str1
print str
gsub(/\//,"-",str)
print str
print ""

}


--- 実行結果 ---

No. 1
sfa35djrBcdjjjZy7.h52jt/rfu76
sf--djrBcdjjjZy7.h52jt/rfu76

No. 2
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa--djrBcdjjjZy-.h--jt/rfu--

No. 3
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa3-djrBcdjjjZy-.h-2jt/rfu--

No. 4
sfa35djrBcdjjjZy7.h52jt/rfu76
sf-35-jrB--jjjZy7.h52jt/rfu76

No. 5
sfa35djrBcdjjjZy7.h52jt/rfu76
s-a35-jrB--jjjZy7.h52jt/r-u76

No. 6
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa3--jrB--jjj-y-.h-2jt/rfu--

No. 7
sfa35djrBcdjjjZy7.h52jt/rfu76
----5d---cd---Z-7--5-------76

No. 8
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35d--rBcd------Zy7.h52--t/rfu76

No. 9
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35d--Bcd----y7.h52--/rfu76

No. 10
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35d--d--y7.h52--fu76

No. 11
sfa35djrBcdjjjZy7.h52jt/rfu76
-s-f-a-3-5-d-r-B-c-d-Z-y-7-.-h-5-2-t-/-r-f-u-7-6-

No. 12
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35d-rBcd-Zy7.h52-t/rfu76

No. 13
sfa35djrBcdjjjZy7.h52jt/rfu76
---35djrBcdjjjZy7.h52jt/rfu76

No. 14
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35djrBcdjjjZy7.h52jt/rf---

No. 15
sfa35djrBcdjjjZy7.h52jt/rfu76
sf-3-djrBcdjjjZy7.h-2jt/rfu76

No. 16
sfa35djrBcdjjjZy7.h52jt/rfu76
sf--5djrBcdjjjZy7.h52jt/rf--6

No. 17
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35djrBcdjjjZy7-h52jt/rfu76

No. 18
sfa35djrBcdjjjZy7.h52jt/rfu76
sfa35djrBcdjjjZy7.h52jt-rfu76







戻る