Trim [AHK_L 31+]

¹®ÀÚ¿­ÀÇ ¾ÕµÚ·ÎºÎÅÍ ¹®ÀÚµéÀ» °È¾î³À´Ï´Ù.

Result :=  Trim(String, OmitChars = " `t")
Result := LTrim(String, OmitChars = " `t")
Result := RTrim(String, OmitChars = " `t")

¸Å°³º¯¼ö

String

¹®ÀÚ¿­ °ªÀ̳ª º¯¼ö. ¼ýÀÚ´Â Áö¿øÇÏÁö ¾Ê½À´Ï´Ù.

OmitChars

StringÀÇ ¾ÕµÚ·ÎºÎÅÍ ¹èÁ¦ÇÒ ¼±ÅÃÀûÀÎ ¹®ÀÚ ¸®½ºÆ® (´ë¼Ò¹®ÀÚ ±¸ºÐ). »ý·«µÇ¸é, ½ºÆäÀ̽º¿Í ÅÇÀÌ Á¦°ÅµË´Ï´Ù.

¿¹Á¦

text := "  text  "
MsgBox % "No trim:`t '" text "'"
    . "`nTrim:`t '" Trim(text) "'"
    . "`nLTrim:`t '" LTrim(text) "'"
    . "`nRTrim:`t '" RTrim(text) "'"
MsgBox % LTrim("00000123","0")