2010. 5. 4. 11:17

RegExp를 이용하여 문자열 정규식 검사를 할 수 있다.

<%
Dim StringToSearch 
StringToSearch = "http://www.foo.com"

Set RegularExpressionObject = New RegExp

With RegularExpressionObject
    .Pattern = ".com"
    .IgnoreCase = True
    .Global = True
End With

expressionmatch = RegularExpressionObject.Test(StringToSearch)
If expressionmatch Then
    Response.Write RegularExpressionObject.Pattern & " was found in " & StringToSearch
Else
    Response.Write RegularExpressionObject.Pattern & " was not found in " & StringToSearch
End If
%>


RegExp 개체에는 Test 수를 제외한 Execute Replace 함수도 포함하고 있다. 

자세한 자료는 아래 링크를 참고한다.



Posted by CoolDragon
2010. 5. 3. 17:50
Posted by CoolDragon
2010. 5. 3. 15:48
출처 : http://virtuelvis.com/archives/2004/02/css-ie-only

IE 버전별 CSS 적용하기
<link rel="stylesheet" type="text/css" href="common.css" />

<!--[if IE]>
  <link rel="stylesheet" type="text/css" href="all-ie.css" />
<![endif]-->

<!--[if IE 6]>
  <link rel="stylesheet" type="text/css" href="ie-6.0.css" />
<![endif]-->

<!--[if lt IE 6]>
  <link rel="stylesheet" type="text/css" href="ie-5.0+5.5.css" />
<![endif]-->
<!--[if IE]>
  <style type="text/css">
    @import url(ie-styles.css);
  </style>
<![endif]-->

Posted by CoolDragon