|
Post New Message
|
1 2 Last >
|
|
9/19/2008 8:12:57 AM
|
 
#
1
|
MichaelApproved
|
testing the "code" bbcode
Code:
Partial Class Blog_Steal_This_Site
Inherits System.Web.UI.Page
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
|
|
|
|
|
|
9/19/2008 8:15:18 AM
|
 
#
2
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
testing with quote
|
|
|
|
|
|
9/19/2008 8:19:08 AM
|
 
#
3
|
MichaelApproved
|
'create regexs
Dim regexBbCode As Regex
Dim msg As String = input
msg = msg.ReplaceEx( "", "<b>").ReplaceEx("", "</b>")
msg = msg.ReplaceEx( "", "<i>").ReplaceEx("", "</i>")
msg = msg.ReplaceEx( "", "<u>").ReplaceEx("", "</u>")
|
|
|
|
|
|
9/19/2008 8:20:07 AM
|
 
#
4
|
MichaelApproved
|
'create regexs
Dim regexBbCode As Regex
Dim msg As String = input
msg = msg.ReplaceEx( "", "<b>").ReplaceEx("", "</b>")
msg = msg.ReplaceEx( "", "<i>").ReplaceEx("", "</i>")
msg = msg.ReplaceEx( "", "<u>").ReplaceEx("", "</u>")
|
|
|
|
|
|
9/19/2008 8:20:39 AM
|
 
#
5
|
MichaelApproved
|
'create regexs Dim regexBbCode As Regex Dim msg As String = input msg = msg.ReplaceEx("", "<b>").ReplaceEx("", "</b>") msg = msg.ReplaceEx("", "<i>").ReplaceEx("", "</i>") msg = msg.ReplaceEx("", "<u>").ReplaceEx("", "</u>") msg = msg.ReplaceEx("Code:", "<div>Code:<div><pre>").ReplaceEx(" ", "</pre></div></div>")
|
|
|
|
|
|
9/19/2008 8:22:59 AM
|
 
#
6
|
MichaelApproved
|
Code:m = regexBbCode.Match(msg)
While m.Success
If m.Groups(2).ToString().Contains(":") Then
If IsNumeric(m.Groups(2).ToString().Split(":")(0)) And m.Groups(2).ToString().Split(":").Length = 2 Then
|
|
|
|
|
|
9/19/2008 8:23:21 AM
|
 
#
7
|
MichaelApproved
|
Code: m = regexBbCode.Match(msg) While m.Success If m.Groups(2).ToString().Contains(":") Then If IsNumeric(m.Groups(2).ToString().Split(":")(0)) And m.Groups(2).ToString().Split(":").Length = 2 Then
|
|
|
|
|
|
9/19/2008 8:26:53 AM
|
 
#
8
|
MichaelApproved
|
|
|
|
|
|
|
9/19/2008 8:27:17 AM
|
 
#
9
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
? does this still work?
|
|
|
|
|
|
9/19/2008 8:27:54 AM
|
 
#
10
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
does this still work
|
|
|
|
|
|
9/19/2008 8:28:04 AM
|
 
#
11
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
does this still work
|
|
|
|
|
|
9/19/2008 8:28:12 AM
|
 
#
12
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
does this still work?
|
|
|
|
|
|
9/19/2008 8:28:47 AM
|
 
#
13
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode Code: Partial Class Blog_Steal_This_Site Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:30:20 AM
|
 
#
14
|
MichaelApproved
|
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:31:31 AM
|
 
#
15
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:31:55 AM
|
 
#
16
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:32:05 AM
|
 
#
17
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:32:06 AM
|
 
#
18
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:32:33 AM
|
 
#
19
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
sdfasf
|
|
|
|
|
|
9/19/2008 8:43:35 AM
|
 
#
20
|
MichaelApproved
|
MichaelApproved wrote: testing the "code" bbcode
does this still work?
XXXXXXXXXXXXXXXXXXXXXsdfasf
|
|
|
|
|
|
Post New Message
|
1 2 Last >
|