S
superlurker
Guest
How would make a pattern for Regex for this.. I know that the numbers would be... \d
<div class="c-model-group js-model-group ">
<div class="c-model-group__numbers">
<span class="c-model js-model c-model--outline">
1
</span>
<span class="c-model js-model c-model--outline">
2
</span>
<span class="c-model js-model c-model--outline">
3
</span>
</div>
</div>
--------------------------------------------------------------------------------------------------------------
Or how could you make this code below loop threw and find all matches the data string and just keep adding to 1 string like
list += d
Tried with no success...
public static string getBetween(string strSource, string strStart, string strEnd)
{
int Start, End;
if (strSource.Contains(strStart) && strSource.Contains(strEnd))
{
Start = strSource.IndexOf(strStart, 0) + strStart.Length;
End = strSource.IndexOf(strEnd, Start);
return strSource.Substring(Start, End - Start);
}
else
{
return "";
}
}
Continue reading...
<div class="c-model-group js-model-group ">
<div class="c-model-group__numbers">
<span class="c-model js-model c-model--outline">
1
</span>
<span class="c-model js-model c-model--outline">
2
</span>
<span class="c-model js-model c-model--outline">
3
</span>
</div>
</div>
--------------------------------------------------------------------------------------------------------------
Or how could you make this code below loop threw and find all matches the data string and just keep adding to 1 string like
list += d
Tried with no success...
public static string getBetween(string strSource, string strStart, string strEnd)
{
int Start, End;
if (strSource.Contains(strStart) && strSource.Contains(strEnd))
{
Start = strSource.IndexOf(strStart, 0) + strStart.Length;
End = strSource.IndexOf(strEnd, Start);
return strSource.Substring(Start, End - Start);
}
else
{
return "";
}
}
Continue reading...