Hi Gartenzaunler!
Danach suche ich beliebige Wort-Zeichen (a-z, A-Z, ä, ö, ü, Ä, Ö, Ü, 0-9 und der Unterstrich). Also:
\w
Eine URL kann aber auch noch andere Zeichen enthalten!
Zum Schluss suche ich die abschließende eckige Klammer. Also
]
Vielleicht "]"? =)
string input = "[link=http://www.google.de@title=Google]";
link = Regex.Replace(input, @"[link=\w]", "");
MessageBox.Show(link);
Was ist das denn für eine Programmiersprache? Delphi?
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)