hi
can anyone give me the code for extrating text between tags using regex function.
say theodore i need only theodore.
i use regex functions. can anyone help?
hi
can anyone give me the code for extrating text between tags using regex function.
say theodore i need only theodore.
i use regex functions. can anyone help?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Aug 5, 2008, 10:10 AM EDT
This should do it:
using System;
using System.Text.RegularExpressions;
class Program
{
static void Main()
{
string html = " theodore ";
Regex r = new Regex("(.*)?");
foreach (Match m in r.Matches(html))
{
Console.WriteLine(m.Groups[1].Value.Trim());
}
Console.ReadLine();
}
}