I have textbox--
(texbox1)= aaa bbb ccc <e2>code</e2> aaa bbb ccc
just i want (textbox2)= I want the code between <e2> and </e2> the code
Where the code is a variable
8mir 0 Newbie Poster
Recommended Answers
Jump to PostNot to beat a dead horse, but I'm surprised no one mentioned Regular Expressions
Imports System.Text.RegularExpressions Module Module1 Sub Main() Dim strTextBoxText As String = "asdf asdf <e2>code</e2> asdf asdf" Dim strCode As String = "Not Found" Dim rxE2 = New Regex("<e2>(?<target>.*)</e2>") ' If rxE2.IsMatch(strTextBoxText) Then strCode …
All 4 Replies
Pgmer 50 Master Poster Featured Poster
yoge911 1 Newbie Poster
codeorder commented: "The best way to learn, is to help others." quoted from my experience. +1
codeorder 197 Nearly a Posting Virtuoso
thines01 401 Postaholic Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.