Function snup(strText) Dim RegEx Set RegEx = New RegExp RegEx.Pattern = "\[code\](.+)\[\/code\]" RegEx.Global = True snup = RegExp.Execute(strText) End Function
Function snup(strText) Dim RegEx Set RegEx = New RegExp RegEx.Pattern = "\[code\](.+)\[\/code\]" RegEx.Global = True Set objSnup = RegEx.Execute(strText)
For Each Match in objSnup strSnup = Replace(Match.Value, "[code]", "") strSnup = Replace(Match.Value, "[/code]", "") Next snup =Replace(Replace(strSnup, "[/code]", ""), "[code]", "") End Function
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.