")- .NET Development. Visit ASP Free to discuss Please help me Replace(strInputComments, "[b]", "<>")" />
")" />
|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Please help me Replace(strInputComments, "[b]", "<>")
Originally posted by : tara (daktai@hotmail.com)Hello there!Could somebody help me to write a code resource how to convert code ofadding image by the forum from [img] to like this: [img]httt://whereverurl.com/image/image.gif[/img] to HTML code. For example : When the code strInputComments = Replace(strInputComments, "", "")strInputComments = Replace(strInputComments, "", "")Therefore, how to Replace(strInputComments by tag [img] to HTML tags.Your heplful and prompt of this code will be appreciated.
|
|
#2
|
|||
|
|||
|
Originally posted by : Richard (richard@trinet.co.uk)You need to use Regular Expressions:Function parseComments(ByVal strText)Dim oREOn Error Resume Next Set oRE = New RegExp With oRE .Global = True .IgnoreCase = True .Multiline = False 'Replace ... with ... .Pattern = "(.*)" strText = .Replace(strText, "$1") 'Replace ... with ... .Pattern = "(.*)" strText = .Replace(strText, "$1") 'Replace [img]...[/img] .Pattern = "[img](.*)[/img]" strText = .Replace(strText, "") 'Add others here End With Set oRE = Nothing parseComments = strTextEnd FunctionstrInputComments = parseComments(strInputComments)Hope this helps!------------tara at 10/15/2001 4:21:53 PMHello there!Could somebody help me to write a code resource how to convert code ofadding image by the forum from [img] to like this: [img]httt://whereverurl.com/image/image.gif[/img] to HTML code. For example : When the code strInputComments = Replace(strInputComments, "", "")strInputComments = Replace(strInputComments, "", "")Therefore, how to Replace(strInputComments by tag [img] to HTML tags.Your heplful and prompt of this code will be appreciated.
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Please help me Replace(strInputComments, "[b]", "<>") |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|