| Replace() | ใช้ค้นหาและแทนที่ข้อความที่กำหนด โดยจะคืนค่า ข้อความที่ถูกแทนที่เรียบร้อยแล้ว |
|---|
method:Replace ( string_text, string_replace )
return type:string
content:ใช้ค้นหาและแทนที่ข้อความที่กำหนด โดยจะคืนค่า ข้อความที่ถูกแทนที่เรียบร้อยแล้ว
example:Set regexp = New RegExp regexp.Pattern = “blue” Dim new_text = regexp.Replace ( “Ocean is blue color”, “black” )