Click here to Skip to main content
15,920,383 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: convert to C# from VB Pin
N a v a n e e t h3-Jan-08 0:32
N a v a n e e t h3-Jan-08 0:32 
GeneralRe: convert to C# from VB Pin
hurrem3-Jan-08 0:49
hurrem3-Jan-08 0:49 
GeneralRe: convert to C# from VB Pin
Declan Bright3-Jan-08 2:27
Declan Bright3-Jan-08 2:27 
GeneralRe: convert to C# from VB Pin
Dave Doknjas3-Jan-08 13:07
Dave Doknjas3-Jan-08 13:07 
QuestionHow to get IP Address? Pin
Kasi Viswanathan3-Jan-08 0:21
Kasi Viswanathan3-Jan-08 0:21 
GeneralRe: How to get IP Address? Pin
Vasudevan Deepak Kumar3-Jan-08 3:43
Vasudevan Deepak Kumar3-Jan-08 3:43 
GeneralRegEx replace [link url= to html link Pin
Eduard Keilholz2-Jan-08 23:23
Eduard Keilholz2-Jan-08 23:23 
GeneralRe: RegEx replace [link url= to html link Pin
N a v a n e e t h3-Jan-08 0:24
N a v a n e e t h3-Jan-08 0:24 
Eduard Keilholz wrote:
[link url=http://www.google.com]clickable text[/link]


You need to use a regular expression to find link from the pattern. See the following code
string LinkString = "[link url=http://www.google.com]clickable text[/link]";
string RegExPattern = "\\A\\[link\\surl=(.*)].*\\[/link]$";
string FinalLink = string.Empty;
if (Regex.IsMatch(LinkString,RegExPattern))
{
       FinalLink = Regex.Match(LinkString, \\A\\[link\\surl=(.*)].*\\[/link]$").Groups[1].Value;
}
You have the link on FinalLink variable. Append HTML anchor tags to this to form a normal link.

Hope this helps


All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions


GeneralRe: RegEx replace [link url= to html link Pin
Eduard Keilholz3-Jan-08 2:18
Eduard Keilholz3-Jan-08 2:18 
GeneralRe: RegEx replace [link url= to html link Pin
N a v a n e e t h3-Jan-08 16:46
N a v a n e e t h3-Jan-08 16:46 
Generalimage control problem Pin
Mogaambo2-Jan-08 23:17
Mogaambo2-Jan-08 23:17 
GeneralRe: image control problem Pin
Michael Sync2-Jan-08 23:22
Michael Sync2-Jan-08 23:22 
QuestionDatagrid Pin
senthilsstil2-Jan-08 22:31
senthilsstil2-Jan-08 22:31 
GeneralRe: Datagrid Pin
Michael Sync2-Jan-08 23:19
Michael Sync2-Jan-08 23:19 
GeneralRe: Datagrid Pin
senthilsstil2-Jan-08 23:22
senthilsstil2-Jan-08 23:22 
GeneralRe: Datagrid Pin
Michael Sync3-Jan-08 20:06
Michael Sync3-Jan-08 20:06 
GeneralPlease help with displaying selected date on calendar in asp.net Pin
Support1232-Jan-08 22:09
Support1232-Jan-08 22:09 
GeneralRe: Please help with displaying selected date on calendar in asp.net Pin
Christian Graus2-Jan-08 22:14
protectorChristian Graus2-Jan-08 22:14 
GeneralRe: Please help with displaying selected date on calendar in asp.net Pin
Support1232-Jan-08 22:22
Support1232-Jan-08 22:22 
GeneralRe: Please help with displaying selected date on calendar in asp.net Pin
Support1232-Jan-08 22:50
Support1232-Jan-08 22:50 
GeneralRe: Please help with displaying selected date on calendar in asp.net Pin
J4amieC2-Jan-08 23:27
J4amieC2-Jan-08 23:27 
GeneralCascading Style Sheet Pin
Member 38798812-Jan-08 22:04
Member 38798812-Jan-08 22:04 
GeneralRe: Cascading Style Sheet Pin
Christian Graus2-Jan-08 22:15
protectorChristian Graus2-Jan-08 22:15 
GeneralPopulate Treeview with xmlnodes Pin
VanithaVasu2-Jan-08 20:16
VanithaVasu2-Jan-08 20:16 
GeneralRe: Populate Treeview with xmlnodes Pin
Michael Sync2-Jan-08 22:00
Michael Sync2-Jan-08 22:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.