<div id="Modul" class="Form" rel="1">Tekst</div> <div\s+id\s*=\s*["']([^"']*)["']\s+class\s*=\s*["']([^"']*)["']\s+rel\s*=\s*["']([^"']*)["']>[^<]*</div> Modul Form 1
s = "<div id=""Modul"" class=""Form"" rel=""1"">Tekst</div>" pat = "<div\s+id\s*=\s*[""']([^""']*)[""']\s+class\s*=\s*[""']([^""']*)[""']\s+rel\s*=\s*[""']([^""']*)[""']>[^<]*</div>" Set re = New RegExp re.Pattern = pat re.Global = True Set mm = re.Execute(s) Set m = mm.Item(0) attr_id = m.SubMatches(0) attr_class = m.SubMatches(1) attr_rel = m.SubMatches(2) Set m = Nothing Set mm = Nothing Set re = Nothing
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.