Computer/웹

[ASP] 문자열 자르기(Mid, Left, Right)

ywlee 2013. 12. 13. 16:17
str = "leeheari"

response.write LEFT(str, 4) & "<br>"
response.write MID(str, 5, 2) & "<br>"
response.write RIGHT(str, 4) & "<br>"

-- 출력결과 --

leeh

ea

eari