Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href[^>]*>(.*?)</a>
- StringCollection resultList = new StringCollection();
- try {
- Regex regexObj = new Regex("<a href[^>]*>(.*?)</a>", RegexOptions.IgnoreCase);
- Match matchResult = regexObj.Match(subjectString);
- while (matchResult.Success) {
- resultList.Add(matchResult.Value);
- matchResult = matchResult.NextMatch();
- }
- } catch (ArgumentException ex) {
- // Syntax error in the regular expression
- }
- rex = /.*href="([^"]+)"/;
- a = source.replace(rex,'n$1').split('n');
- a = REMatch('href="[^"]+"',source);
- for (i = 1; i < ArrayLen(a); i++) {
- a[i] = mid(a[i],6,len(a[i])-1);
- }
Add Comment
Please, Sign In to add comment