")- .NET Development. Visit ASP Free to discuss Please help me Replace(strInputComments, "[b]", "<>")" /> ")" />
 
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old October 15th, 2001, 06:21 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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.

Reply With Quote
  #2  
Old October 16th, 2001, 07:01 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Please help me Replace(strInputComments, "[b]", "<>")


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway