Arrh Regex the one thing that turns my brain to mush thanks for the easy to follow tutorial. 🙂
|
.NET
[Easy] Get any value from any website [Regex] |
(Jan 18, 2013 05:58 AM)Cairns Wrote: This is kinda useless using both split and regex, it's best to use one or the other. Regex is a good bit faster if you know how to write proper patterns. In this case you should have just used split This. Regular split is usually faster performance-wise compared to Regex in most cases, sometimes the split just isn't enough though and we have to use Regex. (Jan 18, 2013 06:40 AM)Cairns Wrote: I have coded a bot in the past that has harvested up to 1000s of links per page. I tried splitting them each time and it was okay the speed. I used regex to test its speed and found that regex ran much better. But I suppose it can change in most cases That's because you had to call the Split method multiple times, with Regex you just have to call the Matches method once. |
|
|
