web search done right
More schema org (#67)
Mikkel Denkerca010fa7c061
diff --git a/src/lib.rs b/src/lib.rsindex 95fed2db..38e8b069 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -51,7 +51,6 @@ pub mod prehashed;mod query;pub mod ranking;mod schema;-mod schema_org;mod search_prettifier;pub mod searcher;mod simhash;diff --git a/src/schema_org.rs b/src/schema_org.rsdeleted file mode 100644index 0ca00289..00000000--- a/src/schema_org.rs+++ /dev/null@@ -1,66 +0,0 @@-// Cuely is an open source web search engine.-// Copyright (C) 2022 Cuely ApS-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as-// published by the Free Software Foundation, either version 3 of the-// License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.--use serde::{Deserialize, Serialize};--#[non_exhaustive]-#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]-#[serde(tag = "@type")]-pub enum SchemaOrg {- ImageObject(ImageObject),-}--#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]-pub struct ImageObject {- pub name: Option<String>,- pub description: Option<String>,- pub author: Option<String>,- #[serde(rename = "contentUrl")]- pub content_url: Option<String>,-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn image_object_example() {- // example taken from https://schema.org/ImageObject- let json = r#"- {- "@context": "https://schema.org",- "@type": "ImageObject",- "author": "Jane Doe",- "contentLocation": "Puerto Vallarta, Mexico",- "contentUrl": "mexico-beach.jpg",- "datePublished": "2008-01-25",- "description": "I took this picture while on vacation last year.",- "name": "Beach in Mexico"- }- "#;-- let parsed: SchemaOrg = serde_json::from_str(json).unwrap();- assert_eq!(- parsed,- SchemaOrg::ImageObject(ImageObject {- name: Some("Beach in Mexico".to_string()),- description: Some("I took this picture while on vacation last year.".to_string()),- author: Some("Jane Doe".to_string()),- content_url: Some("mexico-beach.jpg".to_string()),- }),- );- }-}diff --git a/src/webgraph/centrality/harmonic.rs b/src/webgraph/centrality/harmonic.rsindex ffda6057..6879ec28 100644--- a/src/webgraph/centrality/harmonic.rs+++ b/src/webgraph/centrality/harmonic.rs@@ -272,7 +272,6 @@ mod tests {let graph = test_graph();let centrality = HarmonicCentrality::calculate(&graph);- dbg!(¢rality.full);assert!(centrality.full.get(&Node::from("C")).unwrap()diff --git a/src/webgraph/graph_store.rs b/src/webgraph/graph_store.rsindex cebe2ddd..5fd28bc8 100644--- a/src/webgraph/graph_store.rs+++ b/src/webgraph/graph_store.rs@@ -139,7 +139,7 @@ wherecache.insert(key, Arc::new(RwLock::new(value)));- if cache.len() == self.cache_size {+ if cache.len() >= self.cache_size {while cache.len() > self.cache_size / 2 {if let Some((key, value)) = cache.pop_first() {self.store.insert(key, value.write().unwrap().clone());diff --git a/src/webpage/mod.rs b/src/webpage/mod.rsindex 99d0850b..4352fca0 100644--- a/src/webpage/mod.rs+++ b/src/webpage/mod.rs@@ -17,7 +17,6 @@ use crate::{human_website_annotations::Topic,prehashed::{hash, split_u128},schema::{FastField, TextField},- schema_org::SchemaOrg,simhash, tokenizer, Error, Result,};use chrono::{DateTime, FixedOffset, Utc};@@ -36,6 +35,7 @@ use whatlang::Lang;mod just_text;pub mod region;+mod schema_org;mod url;use crate::schema::{Field, ALL_FIELDS, FLOAT_SCALING};@@ -807,21 +807,8 @@ impl Html {scripts}- pub fn schema_org(&self) -> Vec<SchemaOrg> {- let mut schemas = Vec::new();-- for schema in self.scripts().into_iter().filter(|script| {- matches!(- script.attributes.get("type").map(String::as_str),- Some("application/ld+json")- )- }) {- if let Ok(schema) = serde_json::from_str(&schema.content) {- schemas.push(schema);- }- }-- schemas+ pub fn schema_org(&self) -> Vec<schema_org::Item> {+ schema_org::parse(self.root.clone())}pub fn trackers(&self) -> Vec<Url> {@@ -907,13 +894,18 @@ impl Html {fn schema_org_images(&self) -> Vec<Url> {self.schema_org().into_iter()- .filter(|schema| matches!(schema, SchemaOrg::ImageObject(_)))- .filter_map(|schema| {- match schema {- SchemaOrg::ImageObject(image) => image.content_url.map(Url::from),- _ => None, // has been filtered, so only image is possible- }+ .filter(|item| item.types_contains("ImageObject"))+ .filter_map(|item| {+ item.properties.get("contentUrl").map(|content_url| {+ content_url+ .clone()+ .many()+ .into_iter()+ .filter_map(|url| url.try_into_string())+ .map(|url| url.into())+ })})+ .flatten().collect()}@@ -1034,7 +1026,7 @@ pub type Meta = HashMap<String, String>;mod tests {// TODO: make test macro to test both dom parsers- use crate::{schema::create_schema, schema_org::ImageObject};+ use crate::schema::create_schema;use super::*;@@ -1351,81 +1343,6 @@ mod tests {assert_eq!(url.domain(), "example.com");}- #[test]- fn schema_dot_org_json_ld() {- let html = r#"- <html>- <head>- <script type="application/ld+json">- {- "@context": "https://schema.org",- "@type": "ImageObject",- "author": "Jane Doe",- "contentLocation": "Puerto Vallarta, Mexico",- "contentUrl": "mexico-beach.jpg",- "datePublished": "2008-01-25",- "description": "I took this picture while on vacation last year.",- "name": "Beach in Mexico"- }- </script>- </head>- <body>- </body>- </html>- "#;-- let html = Html::parse(html, "example.com");-- assert_eq!(- html.schema_org(),- vec![SchemaOrg::ImageObject(ImageObject {- name: Some("Beach in Mexico".to_string()),- description: Some("I took this picture while on vacation last year.".to_string()),- author: Some("Jane Doe".to_string()),- content_url: Some("mexico-beach.jpg".to_string()),- })]- );- }-- #[test]- fn no_schema_dot_org_json_ld() {- let html = r#"- <html>- <head>- <script>- {- "invalid": "schema"- }- </script>- </head>- <body>- </body>- </html>- "#;-- let html = Html::parse(html, "example.com");-- assert!(html.schema_org().is_empty());-- let html = r#"- <html>- <head>- <script type="application/ld+json">- {- "invalid": "schema"- }- </script>- </head>- <body>- </body>- </html>- "#;-- let html = Html::parse(html, "example.com");-- assert!(html.schema_org().is_empty());- }-#[test]fn metadata_updated_time() {let html = r#"diff --git a/src/webpage/schema_org/json_ld.rs b/src/webpage/schema_org/json_ld.rsnew file mode 100644index 00000000..3b4ea714--- /dev/null+++ b/src/webpage/schema_org/json_ld.rs@@ -0,0 +1,116 @@+// Cuely is an open source web search engine.+// Copyright (C) 2022 Cuely ApS+//+// This program is free software: you can redistribute it and/or modify+// it under the terms of the GNU Affero General Public License as+// published by the Free Software Foundation, either version 3 of the+// License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU Affero General Public License for more details.+//+// You should have received a copy of the GNU Affero General Public License+// along with this program. If not, see <https://www.gnu.org/licenses/>.++use kuchiki::NodeRef;++use super::Item;++pub fn parse(root: NodeRef) -> Vec<Item> {+ let mut res = Vec::new();++ for node in root.select("script").unwrap().filter(|node| {+ matches!(+ node.attributes.borrow().get("type"),+ Some("application/ld+json")+ )+ }) {+ let text_contens = node.text_contents();+ let content = text_contens.trim();++ if let Ok(schema) = serde_json::from_str(content) {+ res.push(schema);+ }+ }++ res+}++#[cfg(test)]+mod tests {+ use kuchiki::traits::TendrilSink;+ use maplit::hashmap;++ use crate::webpage::schema_org::{OneOrMany, Property};++ use super::*;++ #[test]+ fn schema_dot_org_json_ld() {+ let root = kuchiki::parse_html().one(+ r#"+ <html>+ <head>+ <script type="application/ld+json">+ {+ "@context": "https://schema.org",+ "@type": "ImageObject",+ "author": "Jane Doe",+ "contentLocation": "Puerto Vallarta, Mexico",+ "contentUrl": "mexico-beach.jpg",+ "datePublished": "2008-01-25",+ "description": "I took this picture while on vacation last year.",+ "name": "Beach in Mexico"+ }+ </script>+ </head>+ <body>+ </body>+ </html>+ "#,+ );++ let res = parse(root);++ assert_eq!(res.len(), 1);++ assert_eq!(+ res,+ vec![Item {+ itemtype: Some(OneOrMany::One("ImageObject".to_string())),+ properties: hashmap! {+ "@context".to_string() => OneOrMany::One(Property::String("https://schema.org".to_string())),+ "author".to_string() => OneOrMany::One(Property::String("Jane Doe".to_string())),+ "contentLocation".to_string() => OneOrMany::One(Property::String("Puerto Vallarta, Mexico".to_string())),+ "contentUrl".to_string() => OneOrMany::One(Property::String("mexico-beach.jpg".to_string())),+ "datePublished".to_string() => OneOrMany::One(Property::String("2008-01-25".to_string())),+ "description".to_string() => OneOrMany::One(Property::String("I took this picture while on vacation last year.".to_string())),+ "name".to_string() => OneOrMany::One(Property::String("Beach in Mexico".to_string())),+ }+ }]+ );+ }++ #[test]+ fn no_schema_dot_org_json_ld() {+ let html = r#"+ <html>+ <head>+ <script>+ {+ "invalid": "schema"+ }+ </script>+ </head>+ <body>+ </body>+ </html>+ "#;++ let root = kuchiki::parse_html().one(html);+ let res = parse(root);+ assert!(res.is_empty());+ }+}diff --git a/src/webpage/schema_org/microdata.rs b/src/webpage/schema_org/microdata.rsnew file mode 100644index 00000000..652452ba--- /dev/null+++ b/src/webpage/schema_org/microdata.rs@@ -0,0 +1,692 @@+// Cuely is an open source web search engine.+// Copyright (C) 2022 Cuely ApS+//+// This program is free software: you can redistribute it and/or modify+// it under the terms of the GNU Affero General Public License as+// published by the Free Software Foundation, either version 3 of the+// License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU Affero General Public License for more details.+//+// You should have received a copy of the GNU Affero General Public License+// along with this program. If not, see <https://www.gnu.org/licenses/>.++//! Almost spec compliant microdata parser: https://html.spec.whatwg.org/multipage/microdata.htm++use kuchiki::NodeRef;+use std::collections::HashMap;+use thiserror::Error;++use super::{Item, OneOrMany, Property};++pub type Result<T> = std::result::Result<T, Error>;++#[derive(Error, Debug)]+pub enum Error {+ #[error("Html node was expected to have an itemscope attribute, but did not have one.")]+ ExpectedItemScope,++ #[error("Error while serializing/deserializing to/from bytes")]+ Serialization(#[from] bincode::Error),++ #[error("Could not convert to/from JSON")]+ Json(#[from] serde_json::Error),+}++fn rec_text_contents(node: NodeRef) -> Vec<Property> {+ let mut res = Vec::new();++ for child in node.children() {+ match child.data() {+ kuchiki::NodeData::Element(elem) => {+ if elem.name.local.to_string().as_str() == "code" {+ let mut properties = HashMap::new();+ properties.insert(+ "text".to_string(),+ OneOrMany::One(Property::String(child.text_contents())),+ );++ res.push(Property::Item(Item {+ itemtype: Some(OneOrMany::One("SourceCode".to_string())),+ properties,+ }))+ } else {+ res.append(&mut rec_text_contents(child));+ }+ }+ kuchiki::NodeData::Text(text) => {+ let had_line_ending = text.borrow().ends_with('\n');+ let mut s: String =+ itertools::intersperse(text.borrow().split_whitespace(), " ").collect();++ if had_line_ending {+ s.push('\n');+ }+ res.push(Property::String(s));+ }+ _ => {}+ }+ }++ res+}++fn text_contents(node: NodeRef) -> Vec<Property> {+ let properties = rec_text_contents(node);++ // merge consecutive strings+ let mut res = Vec::new();+ let mut current = None;++ for prop in properties {+ match &prop {+ Property::String(s) => {+ current = match current {+ Some(current) => match current {+ Property::String(mut current_str) => {+ current_str.push(' ');+ current_str.push_str(s);+ Some(Property::String(current_str))+ }+ Property::Item(_) => {+ res.push(current);+ Some(prop)+ }+ },+ None => Some(prop),+ }+ }+ Property::Item(_) => {+ if let Some(current) = current {+ res.push(current);+ }++ current = Some(prop)+ }+ }+ }++ if let Some(current) = current {+ res.push(current)+ }++ // trim strings+ for prop in &mut res {+ if let Property::String(s) = prop {+ let had_line_ending = s.ends_with('\n');++ *s = itertools::intersperse(+ s.lines()+ .map(|l| itertools::intersperse(l.split_whitespace(), " ").collect::<String>())+ .filter(|s| !s.is_empty()),+ "\n".to_string(),+ )+ .collect::<String>()+ .to_string();++ if had_line_ending {+ s.push('\n');+ }+ }+ }++ res.reverse();++ res+}++/// implementation of https://html.spec.whatwg.org/multipage/microdata.html#associating-names-with-items+/// TODO: handle itemrefs+fn parse_item(root: NodeRef) -> Result<Item> {+ if !root+ .as_element()+ .unwrap()+ .attributes+ .borrow()+ .contains("itemscope")+ {+ return Err(Error::ExpectedItemScope);+ }++ let itemtype = root+ .as_element()+ .unwrap()+ .attributes+ .borrow()+ .get("itemtype")+ .map(|s| {+ let itemtype: Vec<_> = s.split_ascii_whitespace().map(String::from).collect();++ if itemtype.len() == 1 {+ OneOrMany::One(itemtype.into_iter().next().unwrap())+ } else {+ OneOrMany::Many(itemtype)+ }+ });++ let mut properties: HashMap<String, Vec<Property>> = HashMap::new();+ let mut pending: Vec<_> = root.children().collect();++ while let Some(current) = pending.pop() {+ if let Some(elem) = current.clone().as_element() {+ if !elem.attributes.borrow().contains("itemscope") {+ pending.extend(current.children());+ }++ if let Some(itemprop) = elem.attributes.borrow().get("itemprop") {+ let properties_for_prop = if elem.attributes.borrow().contains("itemscope") {+ vec![Property::Item(parse_item(current)?)]+ } else {+ match elem.name.local.to_string().as_str() {+ "meta" => vec![Property::String(+ elem.attributes+ .borrow()+ .get("content")+ .map(String::from)+ .unwrap_or_default(),+ )],+ "audio" | "embed" | "iframe" | "img" | "source" | "track" | "video" => {+ if let Some(url) = elem.attributes.borrow().get("src") {+ vec![Property::String(url.to_string())]+ } else {+ vec![Property::String(String::new())]+ }+ }+ "a" | "area" | "link" => {+ if let Some(url) = elem.attributes.borrow().get("href") {+ vec![Property::String(url.to_string())]+ } else {+ vec![Property::String(String::new())]+ }+ }+ "object" => vec![Property::String(+ elem.attributes+ .borrow()+ .get("data")+ .map(String::from)+ .unwrap_or_default(),+ )],+ "data" | "meter" => vec![Property::String(+ elem.attributes+ .borrow()+ .get("value")+ .map(String::from)+ .unwrap_or_default(),+ )],+ "time" => {+ let time = elem+ .attributes+ .borrow()+ .get("datetime")+ .map(String::from)+ .unwrap_or_else(|| current.text_contents());++ vec![Property::String(time)]+ }+ _ => text_contents(current.clone()),+ }+ };++ for itemprop in itemprop.split_ascii_whitespace() {+ properties+ .entry(itemprop.to_string())+ .or_default()+ .append(&mut properties_for_prop.clone());+ }+ }+ }+ }++ Ok(Item {+ itemtype,+ properties: properties+ .into_iter()+ .filter_map(|(name, mut properties)| {+ properties.reverse();++ if properties.is_empty() {+ None+ } else if properties.len() == 1 {+ Some((name, OneOrMany::One(properties.into_iter().next().unwrap())))+ } else {+ Some((name, OneOrMany::Many(properties)))+ }+ })+ .collect(),+ })+}++fn parse(root: NodeRef) -> Vec<Item> {+ let mut res = Vec::new();+ let mut pending: Vec<_> = root.inclusive_descendants().collect();++ while let Some(current) = pending.pop() {+ if let Some(elem) = current.as_element() {+ if elem.attributes.borrow().contains("itemscope")+ && !elem.attributes.borrow().contains("itemprop")+ {+ res.push(parse_item(current).unwrap());+ }+ }+ }++ res.reverse();++ res+}++fn fix_type_for_schema(mut item: Item) -> Item {+ if let Some(OneOrMany::One(itemtype)) = &item.itemtype {+ if let Some(last) = itemtype.split('/').last() {+ item.itemtype = Some(OneOrMany::One(last.to_string()));+ }+ }++ item.properties = item+ .properties+ .into_iter()+ .map(|(key, properties)| match properties {+ OneOrMany::One(property) => {+ if let Property::Item(subitem) = property {+ (+ key,+ OneOrMany::One(Property::Item(fix_type_for_schema(subitem))),+ )+ } else {+ (key, OneOrMany::One(property))+ }+ }+ OneOrMany::Many(properties) => (+ key,+ OneOrMany::Many(+ properties+ .into_iter()+ .map(|property| {+ if let Property::Item(subitem) = property {+ Property::Item(fix_type_for_schema(subitem))+ } else {+ property+ }+ })+ .collect(),+ ),+ ),+ })+ .collect();++ item+}++pub fn parse_schema(root: NodeRef) -> Vec<Item> {+ parse(root).into_iter().map(fix_type_for_schema).collect()+}++#[cfg(test)]+mod tests {+ use kuchiki::traits::TendrilSink;+ use maplit::hashmap;++ use crate::webpage::schema_org::OneOrMany;++ use super::*;++ #[test]+ fn single_simple_item() {+ let root = kuchiki::parse_html()+ .one(+ r#"+ <figure itemscope itemtype="http://n.whatwg.org/work">+ <img itemprop="work" src="images/house.jpeg" alt="A white house, boarded up, sits in a forest.">+ <figcaption itemprop="title">The <span>house</span> I found.</figcaption>+ </figure>+ "#,+ )+ .select_first("figure")+ .unwrap()+ .as_node()+ .clone();++ assert_eq!(+ parse_item(root).unwrap(),+ Item {+ itemtype: Some(OneOrMany::One(String::from("http://n.whatwg.org/work"))),+ properties: hashmap! {+ "work".to_string() => OneOrMany::One(Property::String("images/house.jpeg".to_string())),+ "title".to_string() => OneOrMany::One(Property::String("The house I found.".to_string())),+ }+ }+ );+ }++ #[test]+ fn single_complex_item() {+ let root = kuchiki::parse_html()+ .one(+ r##"+<article itemscope itemtype="http://schema.org/BlogPosting">+ <section>+ <h1>Comments</h1>+ <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments" id="c1">+ <link itemprop="url" href="#c1">+ <footer>+ <p>Posted by: <span itemprop="creator" itemscope itemtype="http://schema.org/Person">+ <span itemprop="name">Greg</span>+ </span></p>+ <p><time itemprop="commentTime" datetime="2013-08-29">15 minutes ago</time></p>+ </footer>+ <p>Ha!</p>+ </article>+ </section>+</article>+ "##,+ )+ .select_first("article")+ .unwrap()+ .as_node()+ .clone();++ let expected = Item {+ itemtype: Some(OneOrMany::One(String::from(+ "http://schema.org/BlogPosting",+ ))),+ properties: hashmap! {+ "comment".to_string() => OneOrMany::One(+ Property::Item(+ Item {+ itemtype: Some(OneOrMany::One("http://schema.org/UserComments".to_string())),+ properties: hashmap! {+ "url".to_string() => OneOrMany::One(Property::String("#c1".to_string())),+ "creator".to_string() => OneOrMany::One(+ Property::Item(Item {+ itemtype: Some(OneOrMany::One("http://schema.org/Person".to_string())),+ properties: hashmap! {+ "name".to_string() => OneOrMany::One(Property::String("Greg".to_string()))+ }+ })),+ "commentTime".to_string() => OneOrMany::One(Property::String("2013-08-29".to_string()))+ }+ })),+ },+ };++ assert_eq!(parse_item(root.clone()).unwrap(), expected);+ assert_eq!(parse(root), vec![expected]);+ }++ #[test]+ fn entire_website() {+ let root = kuchiki::parse_html()+ .one(+ r##"+ <html lang="en">+ <title>My Blog</title>+ <article itemscope itemtype="http://schema.org/BlogPosting">+ <header>+ <h1 itemprop="headline">Progress report</h1>+ <p><time itemprop="datePublished" datetime="2013-08-29">today</time></p>+ <link itemprop="url" href="?comments=0">+ </header>+ <p>All in all, he's doing well with his swim lessons. The biggest thing was he had trouble+ putting his head in, but we got it down.</p>+ <section>+ <h1>Comments</h1>+ <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments" id="c1">+ <link itemprop="url" href="#c1">+ <footer>+ <p>Posted by: <span itemprop="creator" itemscope itemtype="http://schema.org/Person">+ <span itemprop="name">Greg</span>+ </span></p>+ <p><time itemprop="commentTime" datetime="2013-08-29">15 minutes ago</time></p>+ </footer>+ <p>Ha!</p>+ </article>+ <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments" id="c2">+ <link itemprop="url" href="#c2">+ <footer>+ <p>Posted by: <span itemprop="creator" itemscope itemtype="http://schema.org/Person">+ <span itemprop="name">Charlotte</span>+ </span></p>+ <p><time itemprop="commentTime" datetime="2013-08-29">5 minutes ago</time></p>+ </footer>+ <p>When you say "we got it down"...</p>+ </article>+ </section>+ </article>+ <h2>Second article</h2>+ <article itemscope itemtype="http://schema.org/BlogPosting">+ <header>+ <h1 itemprop="headline">Progress report</h1>+ <p><time itemprop="datePublished" datetime="2013-08-29">today</time></p>+ <link itemprop="url" href="?comments=0">+ </header>+ <p>All in all, he's doing well with his swim lessons. The biggest thing was he had trouble+ putting his head in, but we got it down.</p>+ <section>+ <h1>Comments</h1>+ <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments" id="c1">+ <link itemprop="url" href="#c1">+ <footer>+ <p>Posted by: <span itemprop="creator" itemscope itemtype="http://schema.org/Person">+ <span itemprop="name">Greg</span>+ </span></p>+ <p><time itemprop="commentTime" datetime="2013-08-29">15 minutes ago</time></p>+ </footer>+ <p>Ha!</p>+ </article>+ <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments" id="c2">+ <link itemprop="url" href="#c2">+ <footer>+ <p>Posted by: <span itemprop="creator" itemscope itemtype="http://schema.org/Person">+ <span itemprop="name">Charlotte</span>+ </span></p>+ <p><time itemprop="commentTime" datetime="2013-08-29">5 minutes ago</time></p>+ </footer>+ <p>When you say "we got it down"...</p>+ </article>+ </section>+ </article>+ </html>+ "##,+ );++ let res = parse(root);+ assert_eq!(res.len(), 2);++ let expected_article = Item {+ itemtype: Some(OneOrMany::One(String::from(+ "http://schema.org/BlogPosting",+ ))),+ properties: hashmap! {+ "headline".to_string() => OneOrMany::One(Property::String(String::from("Progress report"))),+ "datePublished".to_string() => OneOrMany::One(Property::String("2013-08-29".to_string())),+ "url".to_string() => OneOrMany::One(Property::String("?comments=0".to_string())),+ "comment".to_string() => OneOrMany::Many(vec![+ Property::Item(+ Item {+ itemtype: Some(OneOrMany::One("http://schema.org/UserComments".to_string())),+ properties: hashmap! {+ "url".to_string() => OneOrMany::One(Property::String("#c1".to_string())),+ "creator".to_string() => OneOrMany::One(+ Property::Item(Item {+ itemtype: Some(OneOrMany::One("http://schema.org/Person".to_string())),+ properties: hashmap! {+ "name".to_string() => OneOrMany::One(Property::String("Greg".to_string()))+ }+ })),+ "commentTime".to_string() => OneOrMany::One(Property::String("2013-08-29".to_string()))+ }+ }),+ Property::Item(+ Item {+ itemtype: Some(OneOrMany::One("http://schema.org/UserComments".to_string())),+ properties: hashmap! {+ "url".to_string() => OneOrMany::One(Property::String("#c2".to_string())),+ "creator".to_string() => OneOrMany::One(+ Property::Item(Item {+ itemtype: Some(OneOrMany::One("http://schema.org/Person".to_string())),+ properties: hashmap! {+ "name".to_string() => OneOrMany::One(Property::String("Charlotte".to_string()))+ }+ })),+ "commentTime".to_string() => OneOrMany::One(Property::String("2013-08-29".to_string()))+ }+ })+ ]),+ },+ };++ assert_eq!(res, vec![expected_article.clone(), expected_article])+ }++ #[test]+ fn website_without_microdata() {+ let root = kuchiki::parse_html()+ .one(+ r##"+ <html lang="en">+ <title>My Blog</title>+ <article>+ <header>+ <h1>Progress report</h1>+ <p><time datetime="2013-08-29">today</time></p>+ <link href="?comments=0">+ </header>+ <p>All in all, he's doing well with his swim lessons. The biggest thing was he had trouble+ putting his head in, but we got it down.</p>+ <section>+ <h1>Comments</h1>+ <article id="c1">+ <lin href="#c1">+ <footer>+ <p>Posted by: <span>+ <span itemprop="name">Greg</span>+ </span></p>+ <p><time datetime="2013-08-29">15 minutes ago</time></p>+ </footer>+ <p>Ha!</p>+ </article>+ <article id="c2">+ <lin href="#c2">+ <footer>+ <p>Posted by: <span>+ <span itemprop="name">Charlotte</span>+ </span></p>+ <p><time datetime="2013-08-29">5 minutes ago</time></p>+ </footer>+ <p>When you say "we got it down"...</p>+ </article>+ </section>+ </article>+ </html>+ "##,+ );++ assert_eq!(parse(root).len(), 0);+ }++ #[test]+ fn schema_image_object_example() {+ let root = kuchiki::parse_html().one(+ r##"+ <html>+ <div itemscope itemtype="https://schema.org/ImageObject">+ <h2 itemprop="name">Beach in Mexico</h2>+ <img src="mexico-beach.jpg"+ alt="Sunny, sandy beach."+ itemprop="contentUrl" />++ By <span itemprop="author">Jane Doe</span>+ Photographed in+ <span itemprop="contentLocation">Puerto Vallarta, Mexico</span>+ Date uploaded:+ <meta itemprop="datePublished" content="2008-01-25">Jan 25, 2008++ <span itemprop="description">I took this picture while on vacation last year.</span>+ </div>+ </html>+ "##,+ );++ let res = parse_schema(root);++ assert_eq!(+ res,+ vec![Item {+ itemtype: Some(OneOrMany::One("ImageObject".to_string())),+ properties: hashmap! {+ "author".to_string() => OneOrMany::One(Property::String("Jane Doe".to_string())),+ "contentLocation".to_string() => OneOrMany::One(Property::String("Puerto Vallarta, Mexico".to_string())),+ "contentUrl".to_string() => OneOrMany::One(Property::String("mexico-beach.jpg".to_string())),+ "datePublished".to_string() => OneOrMany::One(Property::String("2008-01-25".to_string())),+ "description".to_string() => OneOrMany::One(Property::String("I took this picture while on vacation last year.".to_string())),+ "name".to_string() => OneOrMany::One(Property::String("Beach in Mexico".to_string())),+ }+ }]+ );+ }++ #[test]+ fn schema_person_example() {+ let root = kuchiki::parse_html().one(+ r##"+ <div itemscope itemtype="https://schema.org/Person">+ <span itemprop="name">Jane Doe</span>+ <img src="janedoe.jpg" itemprop="image" alt="Photo of Jane Doe"/>++ <span itemprop="jobTitle">Professor</span>+ <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">+ <span itemprop="streetAddress">+ 20341 Whitworth Institute+ 405 N. Whitworth+ </span>+ <span itemprop="addressLocality">Seattle</span>,+ <span itemprop="addressRegion">WA</span>+ <span itemprop="postalCode">98052</span>+ </div>+ <span itemprop="telephone">(425) 123-4567</span>+ <a href="mailto:[email protected]" itemprop="email">+ [email protected]</a>++ Jane's home page:+ <a href="http://www.janedoe.com" itemprop="url">janedoe.com</a>++ Graduate students:+ <a href="http://www.xyz.edu/students/alicejones.html" itemprop="colleague">+ Alice Jones</a>+ <a href="http://www.xyz.edu/students/bobsmith.html" itemprop="colleague">+ Bob Smith</a>+ </div>+ "##,+ );+ let expected_json = r#"+ {+ "@type": "Person",+ "address": {+ "@type": "PostalAddress",+ "addressLocality": "Seattle",+ "addressRegion": "WA",+ "postalCode": "98052",+ "streetAddress": "20341 Whitworth Institute 405 N. Whitworth"+ },+ "colleague": [+ "http://www.xyz.edu/students/alicejones.html",+ "http://www.xyz.edu/students/bobsmith.html"+ ],+ "email": "mailto:[email protected]",+ "image": "janedoe.jpg",+ "jobTitle": "Professor",+ "name": "Jane Doe",+ "telephone": "(425) 123-4567",+ "url": "http://www.janedoe.com"+ }+ "#;++ let res = parse_schema(root);++ assert_eq!(res.len(), 1);+ assert_eq!(res, vec![serde_json::from_str(expected_json).unwrap()]);+ }+}diff --git a/src/webpage/schema_org/mod.rs b/src/webpage/schema_org/mod.rsnew file mode 100644index 00000000..27b29335--- /dev/null+++ b/src/webpage/schema_org/mod.rs@@ -0,0 +1,295 @@+// Cuely is an open source web search engine.+// Copyright (C) 2022 Cuely ApS+//+// This program is free software: you can redistribute it and/or modify+// it under the terms of the GNU Affero General Public License as+// published by the Free Software Foundation, either version 3 of the+// License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU Affero General Public License for more details.+//+// You should have received a copy of the GNU Affero General Public License+// along with this program. If not, see <https://www.gnu.org/licenses/>.++use std::collections::HashMap;++use kuchiki::NodeRef;+use serde::{Deserialize, Serialize};++mod json_ld;+mod microdata;++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(untagged)]+pub enum Property {+ String(String),+ Item(Item),+}++impl Property {+ pub fn try_into_string(self) -> Option<String> {+ if let Property::String(s) = self {+ Some(s)+ } else {+ None+ }+ }++ pub fn try_into_item(self) -> Option<Item> {+ if let Property::Item(item) = self {+ Some(item)+ } else {+ None+ }+ }+}++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct Item {+ #[serde(rename = "@type")]+ pub itemtype: Option<OneOrMany<String>>,+ #[serde(flatten)]+ pub properties: HashMap<String, OneOrMany<Property>>,+}+impl Item {+ pub fn types_contains(&self, itemtype: &str) -> bool {+ match &self.itemtype {+ Some(tt) => match tt {+ OneOrMany::One(this_type) => itemtype == this_type,+ OneOrMany::Many(itemtypes) => itemtypes.iter().any(|t| t == itemtype),+ },+ None => false,+ }+ }+}++#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]+#[serde(untagged)]+pub enum OneOrMany<T> {+ One(T),+ Many(Vec<T>),+}++impl<T> OneOrMany<T> {+ pub fn one(self) -> Option<T> {+ match self {+ OneOrMany::One(one) => Some(one),+ OneOrMany::Many(many) => many.into_iter().next(),+ }+ }++ pub fn many(self) -> Vec<T> {+ match self {+ OneOrMany::One(one) => vec![one],+ OneOrMany::Many(many) => many,+ }+ }+}++pub fn parse(root: NodeRef) -> Vec<Item> {+ let mut res = self::json_ld::parse(root.clone());+ res.append(&mut self::microdata::parse_schema(root));++ res+}++#[cfg(test)]+mod tests {+ use kuchiki::traits::TendrilSink;+ use maplit::hashmap;++ use super::*;++ #[test]+ fn image_object_example() {+ // example taken from https://schema.org/ImageObject+ let json = r#"+ {+ "@context": "https://schema.org",+ "@type": "ImageObject",+ "author": "Jane Doe",+ "contentLocation": "Puerto Vallarta, Mexico",+ "contentUrl": "mexico-beach.jpg",+ "datePublished": "2008-01-25",+ "description": "I took this picture while on vacation last year.",+ "name": "Beach in Mexico"+ }+ "#;++ let item: Item = serde_json::from_str(json).unwrap();+ assert_eq!(+ item,+ Item {+ itemtype: Some(OneOrMany::One("ImageObject".to_string())),+ properties: hashmap! {+ "@context".to_string() => OneOrMany::One(Property::String("https://schema.org".to_string())),+ "author".to_string() => OneOrMany::One(Property::String("Jane Doe".to_string())),+ "contentLocation".to_string() => OneOrMany::One(Property::String("Puerto Vallarta, Mexico".to_string())),+ "contentUrl".to_string() => OneOrMany::One(Property::String("mexico-beach.jpg".to_string())),+ "datePublished".to_string() => OneOrMany::One(Property::String("2008-01-25".to_string())),+ "description".to_string() => OneOrMany::One(Property::String("I took this picture while on vacation last year.".to_string())),+ "name".to_string() => OneOrMany::One(Property::String("Beach in Mexico".to_string())),+ }+ }+ );+ }++ #[test]+ fn stackoverflow_question() {+ let html = include_str!("../../../testcases/schema_org/stackoverflow.html");+ let root = kuchiki::parse_html().one(html);+ let res = microdata::parse_schema(root);++ assert_eq!(res.len(), 1);++ assert!(res[0].properties.contains_key("image"));+ assert!(res[0].properties.contains_key("primaryImageOfPage"));+ assert_eq!(+ res[0].properties.get("name"),+ Some(&OneOrMany::One(Property::String(+ "RegEx match open tags except XHTML self-contained tags".to_string()+ )))+ );++ let main = res[0]+ .properties+ .get("mainEntity")+ .unwrap()+ .clone()+ .one()+ .unwrap()+ .try_into_item()+ .unwrap();++ assert_eq!(main.itemtype, Some(OneOrMany::One("Question".to_string())));+ assert_eq!(+ main.properties.get("name"),+ Some(&OneOrMany::One(Property::String(+ "RegEx match open tags except XHTML self-contained tags".to_string()+ )))+ );+ assert_eq!(+ main.properties.get("dateCreated"),+ Some(&OneOrMany::One(Property::String(+ "2009-11-13T22:38:26".to_string()+ )))+ );++ assert!(+ main.properties+ .get("suggestedAnswer")+ .unwrap()+ .clone()+ .many()+ .len()+ > 10+ );++ assert!(main.properties.contains_key("acceptedAnswer"));++ let text = main.properties.get("text").unwrap().clone().many();++ assert_eq!(text[0], Property::String("Locked . Comments on this question have been disabled, but it is still accepting new answers and other interactions. Learn more .\nI need to match all of these opening tags:\n".to_string()));++ assert_eq!(+ text[1],+ Property::Item(Item {+ itemtype: Some(OneOrMany::One("SourceCode".to_string())),+ properties: hashmap! {+ "text".to_string() => OneOrMany::One(Property::String("<p>\n<a href=\"foo\">\n".to_string()))+ }+ })+ );+ }++ #[test]+ fn recipe() {+ let html = include_str!("../../../testcases/schema_org/recipe.html");+ let root = kuchiki::parse_html().one(html);+ let res = microdata::parse_schema(root);++ assert!(res.len() > 20);++ let recipe = res+ .into_iter()+ .find(|item| {+ if let Some(itemtype) = &item.itemtype {+ itemtype.clone().one().unwrap() == "Recipe"+ } else {+ false+ }+ })+ .unwrap();++ assert_eq!(+ recipe.properties.get("recipeCategory"),+ Some(&OneOrMany::One(Property::String("Aftensmad".to_string())))+ );++ assert_eq!(+ recipe.properties.get("name"),+ Some(&OneOrMany::One(Property::String(+ "One Pot Pasta med chorizo".to_string()+ )))+ );++ assert_eq!(+ recipe.properties.get("recipeYield"),+ Some(&OneOrMany::One(Property::String("4".to_string())))+ );++ assert_eq!(+ recipe.properties.get("cookTime"),+ Some(&OneOrMany::One(Property::String("PT25M".to_string())))+ );++ assert_eq!(+ recipe.properties.get("recipeIngredient"),+ Some(&OneOrMany::Many(vec![+ Property::String("400 g spaghetti".to_string()),+ Property::String("1 dåse hakkede tomater".to_string()),+ Property::String("1 håndfuld frisk basilikum, bladene herfra".to_string()),+ Property::String("1 løg, finthakket".to_string()),+ Property::String("2 fed hvidløg, finthakket".to_string()),+ Property::String("20 cherrytomater, skåret i både".to_string()),+ Property::String("0,50 squash, groftrevet".to_string()),+ Property::String("1 tsk oregano, tørret".to_string()),+ Property::String("50 g chorizo, finthakket".to_string()),+ Property::String("5 dl grøntsagsbouillon".to_string()),+ Property::String("2 spsk olivenolie".to_string()),+ Property::String("1 tsk chiliflager, kan undlades".to_string()),+ Property::String("1 tsk salt".to_string()),+ Property::String("sort peber, friskkværnet".to_string()),+ Property::String("50 g parmesan, friskrevet til servering".to_string()),+ Property::String("1 håndfuld frisk basilikum, blade".to_string()),+ ]))+ );++ let desc = recipe+ .properties+ .get("description")+ .unwrap()+ .clone()+ .one()+ .unwrap()+ .try_into_string()+ .unwrap();++ assert!(!desc.contains("PT25MPT10M4"));++ let instructions = recipe+ .properties+ .get("recipeInstructions")+ .unwrap()+ .clone()+ .one()+ .unwrap()+ .try_into_string()+ .unwrap();++ assert_eq!(&instructions, "Helt enkelt som navnet antyder, så kom alle ingredienserne i en stor gryde på én gang. Kog retten op, rør godt rundt i gryden og skru ned for varmen. Lad det simrekoge under låg i 10-12 minutter, til spaghettien er perfekt kogt – al dente med lidt bid i. Server med revet parmesan og basilikum.");+ }+}diff --git a/src/webpage/url.rs b/src/webpage/url.rsindex 9342d5ae..b5b42cca 100644--- a/src/webpage/url.rs+++ b/src/webpage/url.rs@@ -36,6 +36,12 @@ impl From<String> for Url {}}+impl From<&str> for Url {+ fn from(url: &str) -> Self {+ Self::from(url.to_string())+ }+}+impl Url {pub fn strip_protocol(&self) -> &str {let mut start_host = 0;diff --git a/testcases/schema_org/recipe.html b/testcases/schema_org/recipe.htmlnew file mode 100644index 00000000..a035a038--- /dev/null+++ b/testcases/schema_org/recipe.html@@ -0,0 +1,8105 @@+<!DOCTYPE html>+<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="da"> <![endif]-->+<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="da"> <![endif]-->+<!--[if IE 8]> <html class="no-js lt-ie9" lang="da"> <![endif]-->+<!--[if gt IE 8]><!-->+<html class="no-js" lang="da">+<!--<![endif]-->++<head>+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0" />+ <!-- Google Consent Mode -->+ <script data-cookieconsent="ignore">+ window.dataLayer = window.dataLayer || [];+ function gtag() {+ dataLayer.push(arguments)+ }+ gtag("consent", "default", {+ ad_storage: "denied",+ analytics_storage: "denied",+ functionality_storage: "denied",+ personalization_storage: "denied",+ security_storage: "granted",+ wait_for_update: 500+ });+ gtag("set", "ads_data_redaction", true);+ </script>+ <!-- End Google Consent Mode-->+ <!-- Google Tag Manager -->+ <script data-cookieconsent="ignore">+ (function (w, d, s, l, i) {+ w[l] = w[l] || []; w[l].push({+ 'gtm.start':+ new Date().getTime(), event: 'gtm.js'+ }); var f = d.getElementsByTagName(s)[0],+ j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =+ 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);+ })(window, document, 'script', 'dataLayer', 'GTM-KPHRD4D');</script>+ <!-- End Google Tag Manager -->+ <!-- Cookiebot CMP-->+ <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="3fd83e37-5009-4c1e-be74-0b58bae69ac1"+ data-blockingmode="auto" type="text/javascript" data-framework="IAB"></script>+ <!-- End Cookiebot CMP -->+ <script>+ const loadTcfStub = () => {+ !(function () {+ var e = function () {+ var e,+ t = "__tcfapiLocator",+ a = [],+ n = window;+ for (; n;) {+ try {+ if (n.frames[t]) {+ e = n;+ break;+ }+ } catch (e) { }+ if (n === window.top) break;+ n = n.parent;+ }+ e ||+ (!(function e() {+ var a = n.document,+ r = !!n.frames[t];+ if (!r)+ if (a.body) {+ var i = a.createElement("iframe");+ (i.style.cssText = "display:none"),+ (i.name = t),+ a.body.appendChild(i);+ } else setTimeout(e, 5);+ return !r;+ })(),+ (n.__tcfapi = function () {+ for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)+ n[r] = arguments[r];+ if (!n.length) return a;+ if ("setGdprApplies" === n[0])+ n.length > 3 &&+ 2 === parseInt(n[1], 10) &&+ "boolean" == typeof n[3] &&+ ((e = n[3]), "function" == typeof n[2] && n[2]("set", !0));+ else if ("ping" === n[0]) {+ var i = { gdprApplies: e, cmpLoaded: !1, cmpStatus: "stub" };+ "function" == typeof n[2] && n[2](i);+ } else a.push(n);+ }),+ n.addEventListener(+ "message",+ function (e) {+ var t = "string" == typeof e.data,+ a = {};+ try {+ a = t ? JSON.parse(e.data) : e.data;+ } catch (e) { }+ var n = a.__tcfapiCall;+ n &&+ window.__tcfapi(+ n.command,+ n.version,+ function (a, r) {+ var i = {+ __tcfapiReturn: {+ returnValue: a,+ success: r,+ callId: n.callId,+ },+ };+ t && (i = JSON.stringify(i)), e.source.postMessage(i, "*");+ },+ n.parameter+ );+ },+ !1+ ));+ };+ "undefined" != typeof module ? (module.exports = e) : e();+ })();+ };+ </script>+ <meta name="google-site-verification" content="nQKmt_tIbzGR5or65zIrZeoWg1RH5hYmOQF1OcynpD4" />+ <meta name="p:domain_verify" content="b29dbaf4e4b29fa78b409938fd73066b" />+ <link rel="preload"+ href="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/fa/webfonts/fa-solid-900.woff2"+ as="font" />+ <link rel="preload"+ href="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/fa/webfonts/fa-light-300.woff2"+ as="font" />+ <meta name="pinterest-rich-pin" content="false" />+ <link rel="shortcut icon" href="/favicon.png" />+ <link rel="apple-touch-icon image_src" href="/favicon.png" />+ <title>One pot pasta - opskrift på den nemmeste og lækreste pastaret</title>+ <script src="https://tags.adnuntius.com/concept_cph/dWP579iij.prod.js" async></script>+ <script>+ window.addEventListener('CookiebotOnLoad', function (e) {+ if (!Cookiebot.consent.marketing) {+ /*(function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://macro.adnami.io/macro/spec/adsm.macro.b0036c32-8e55-4305-bdcf-b8f7aab7bd67.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();++ var adsmtag = adsmtag || {};+ adsmtag.cmd = adsmtag.cmd || [];++ document.body.classList.add('cookieless');++ window.adn = window.adn || {}; adn.calls = adn.calls || [];+ adn.calls.push(function()+ {+ adn.request({ adUnits: [+ { auId: '00000000000bae7f', auW: '930', auH: '180', useCookies: false },+ { auId: '00000000000bae80', auW: '300', auH: '250', useCookies: false },+ { auId: '00000000000bae81', auW: '300', auH: '250', useCookies: false },+ { auId: '00000000000bae82', auW: '320', auH: '320', useCookies: false },+ { auId: '00000000000bae83', auW: '320', auH: '320', useCookies: false },+ { auId: '00000000000bae84', auW: '320', auH: '320', useCookies: false },+ { auId: '00000000000bae85', auW: '320', auH: '320', useCookies: false }+ ]});+ });*/+ }+ else {+ /*(function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://macro.adnami.io/macro/spec/adsm.macro.c2d00cd4-7d5e-4fcd-aa48-e3d709943dcf.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();++ var adsmtag = adsmtag || {};+ adsmtag.cmd = adsmtag.cmd || [];*/++ var _adftrack = {+ pm: 273610,+ divider: encodeURIComponent('|'),+ pagename: encodeURIComponent('valdemarsro.dk')+ };++ (function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://track.adform.net/serving/scripts/trackpoint/async/'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();+ }+ }, false);+ </script>+ <script>+ var style = document.createElement('style');+ style.type = 'text/css';+ style.innerHTML = '.hiddenForPrint { display: none!important; }';+ document.getElementsByTagName('head')[0].appendChild(style);+ window.addEventListener("beforeprint", function (event) {+ var adslots = document.querySelectorAll('div[id^="adn-"]');+ adslots.forEach(div => {+ div.classList.add("hiddenForPrint");+ div.id = "hiddenForPrint"+ });+ });+ </script>+ <!--<script src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/js/adsm-1.0.5.js"></script>+ <script type="text/javascript" src="//eas8.emediate.eu/EAS_tag.1.0.js"></script>-->+ <!--<script>+ var adsmtag = adsmtag || {};+ adsmtag.cmd = adsmtag.cmd || [];+ (function () {+ var script = document.createElement('script');+ script.async = true;+ script.type = 'text/javascript';+ script.src = 'https:' + '//rmb-adsembler.netdna-ssl.com/mnemonics/adsm.macro.c2d00cd4-7d5e-4fcd-aa48-e3d709943dcf.js';+ var node = document.getElementsByTagName('script')[0];+ node.parentNode.insertBefore(script, node);+ })();+ </script>-->+ <link rel="apple-touch-icon-precomposed"+ href="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/homescreen.png" />+ <meta name="p:domain_verify" content="44b9fbe74d49952c174561a91bd8b891" />+ <!-- Hotjar Tracking Code forhttp://valdemarsro.dk <http://valdemarsro.dk/> -->+ <!--<script>+ (function(h,o,t,j,a,r){+ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};+ h._hjSettings={hjid:242276,hjsv:5};+ a=o.getElementsByTagName('head')[0];+ r=o.createElement('script');r.async=1;+ r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;+ a.appendChild(r);+ })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');+ </script>-->+ <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />++ <!-- This site is optimized with the Yoast SEO plugin v19.9 - https://yoast.com/wordpress/plugins/seo/ -->+ <meta name="description"+ content="One pot pasta - kom alle ingredienserne i en gryde og tilbered på kort tid den skønneste pastaret med chorizo og basilikum" />+ <link rel="canonical" href="https://www.valdemarsro.dk/one-pot-pasta/" />+ <meta property="og:locale" content="da_DK" />+ <meta property="og:type" content="article" />+ <meta property="og:title" content="One pot pasta - opskrift på den nemmeste og lækreste pastaret" />+ <meta property="og:description"+ content="One pot pasta - kom alle ingredienserne i en gryde og tilbered på kort tid den skønneste pastaret med chorizo og basilikum" />+ <meta property="og:url" content="https://www.valdemarsro.dk/one-pot-pasta/" />+ <meta property="og:site_name" content="Valdemarsro" />+ <meta property="article:publisher" content="https://www.facebook.com/Valdemarsro" />+ <meta property="article:published_time" content="2017-03-07T07:37:14+00:00" />+ <meta property="article:modified_time" content="2022-10-30T11:03:51+00:00" />+ <meta property="og:image" content="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg" />+ <meta property="og:image:width" content="1000" />+ <meta property="og:image:height" content="715" />+ <meta property="og:image:type" content="image/jpeg" />+ <meta name="author" content="Ann-Christine" />+ <meta name="twitter:label1" content="Skrevet af" />+ <meta name="twitter:data1" content="Ann-Christine" />+ <meta name="twitter:label2" content="Estimeret læsetid" />+ <meta name="twitter:data2" content="3 minutter" />+ <script type="application/ld+json"+ class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"Article","@id":"https://www.valdemarsro.dk/one-pot-pasta/#article","isPartOf":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/"},"author":{"name":"Ann-Christine","@id":"https://www.valdemarsro.dk/#/schema/person/9f60ecd87413504455262682ccd720d5"},"headline":"One pot pasta – verdens nemmeste pasta","datePublished":"2017-03-07T07:37:14+00:00","dateModified":"2022-10-30T11:03:51+00:00","mainEntityOfPage":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/"},"wordCount":579,"commentCount":254,"publisher":{"@id":"https://www.valdemarsro.dk/#organization"},"image":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/#primaryimage"},"thumbnailUrl":"https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg","articleSection":["Aftensmad","Bålmad","Familiefavoritter","Nem Hverdagsmad","Opskrifter","Opskrifter til børn - Hverdagsfavoritter børn","Pasta"],"inLanguage":"da-DK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https://www.valdemarsro.dk/one-pot-pasta/#respond"]}]},{"@type":"WebPage","@id":"https://www.valdemarsro.dk/one-pot-pasta/","url":"https://www.valdemarsro.dk/one-pot-pasta/","name":"One pot pasta - opskrift på den nemmeste og lækreste pastaret","isPartOf":{"@id":"https://www.valdemarsro.dk/#website"},"primaryImageOfPage":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/#primaryimage"},"image":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/#primaryimage"},"thumbnailUrl":"https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg","datePublished":"2017-03-07T07:37:14+00:00","dateModified":"2022-10-30T11:03:51+00:00","description":"One pot pasta - kom alle ingredienserne i en gryde og tilbered på kort tid den skønneste pastaret med chorizo og basilikum","breadcrumb":{"@id":"https://www.valdemarsro.dk/one-pot-pasta/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https://www.valdemarsro.dk/one-pot-pasta/"]}]},{"@type":"ImageObject","inLanguage":"da-DK","@id":"https://www.valdemarsro.dk/one-pot-pasta/#primaryimage","url":"https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg","contentUrl":"https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg","width":1000,"height":715,"caption":"one pot pasta"},{"@type":"BreadcrumbList","@id":"https://www.valdemarsro.dk/one-pot-pasta/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https://www.valdemarsro.dk/"},{"@type":"ListItem","position":2,"name":"One pot pasta – verdens nemmeste pasta"}]},{"@type":"WebSite","@id":"https://www.valdemarsro.dk/#website","url":"https://www.valdemarsro.dk/","name":"Valdemarsro","description":"Opskrifter og livsstil med over 1000 skønne opskrifter","publisher":{"@id":"https://www.valdemarsro.dk/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.valdemarsro.dk/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"da-DK"},{"@type":"Organization","@id":"https://www.valdemarsro.dk/#organization","name":"Valdemarsro.dk","url":"https://www.valdemarsro.dk/","logo":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https://www.valdemarsro.dk/#/schema/logo/image/","url":"https://www.valdemarsro.dk/wp-content/2015/04/valdemarsrodk_logo.png","contentUrl":"https://www.valdemarsro.dk/wp-content/2015/04/valdemarsrodk_logo.png","width":400,"height":180,"caption":"Valdemarsro.dk"},"image":{"@id":"https://www.valdemarsro.dk/#/schema/logo/image/"},"sameAs":["http://instagram.com/valdemarsro_dk","https://www.facebook.com/Valdemarsro","https://twitter.com/AnnChristine_"]},{"@type":"Person","@id":"https://www.valdemarsro.dk/#/schema/person/9f60ecd87413504455262682ccd720d5","name":"Ann-Christine"}]}</script>+ <!-- / Yoast SEO plugin. -->+++ <link rel='dns-prefetch' href='//ajax.googleapis.com' />+ <link rel='dns-prefetch' href='//fonts.googleapis.com' />+ <!-- This site uses the Google Analytics by MonsterInsights plugin v8.10.0 - Using Analytics tracking - https://www.monsterinsights.com/ -->+ <script src="//www.googletagmanager.com/gtag/js?id=UA-5530254-7" data-cfasync="false" data-wpfc-render="false"+ type="text/javascript" async></script>+ <script data-cfasync="false" data-wpfc-render="false" type="text/javascript">+ var mi_version = '8.10.0';+ var mi_track_user = true;+ var mi_no_track_reason = '';++ var disableStrs = [+ 'ga-disable-UA-5530254-7',+ ];++ /* Function to detect opted out users */+ function __gtagTrackerIsOptedOut() {+ for (var index = 0; index < disableStrs.length; index++) {+ if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) {+ return true;+ }+ }++ return false;+ }++ /* Disable tracking if the opt-out cookie exists. */+ if (__gtagTrackerIsOptedOut()) {+ for (var index = 0; index < disableStrs.length; index++) {+ window[disableStrs[index]] = true;+ }+ }++ /* Opt-out function */+ function __gtagTrackerOptout() {+ for (var index = 0; index < disableStrs.length; index++) {+ document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';+ window[disableStrs[index]] = true;+ }+ }++ if ('undefined' === typeof gaOptout) {+ function gaOptout() {+ __gtagTrackerOptout();+ }+ }+ window.dataLayer = window.dataLayer || [];++ window.MonsterInsightsDualTracker = {+ helpers: {},+ trackers: {},+ };+ if (mi_track_user) {+ function __gtagDataLayer() {+ dataLayer.push(arguments);+ }++ function __gtagTracker(type, name, parameters) {+ if (!parameters) {+ parameters = {};+ }++ if (parameters.send_to) {+ __gtagDataLayer.apply(null, arguments);+ return;+ }++ if (type === 'event') {++ parameters.send_to = monsterinsights_frontend.ua;+ __gtagDataLayer(type, name, parameters);+ } else {+ __gtagDataLayer.apply(null, arguments);+ }+ }++ __gtagTracker('js', new Date());+ __gtagTracker('set', {+ 'developer_id.dZGIzZG': true,+ });+ __gtagTracker('config', 'UA-5530254-7', { "forceSSL": "true" });+ window.gtag = __gtagTracker; (function () {+ /* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */+ /* ga and __gaTracker compatibility shim. */+ var noopfn = function () {+ return null;+ };+ var newtracker = function () {+ return new Tracker();+ };+ var Tracker = function () {+ return null;+ };+ var p = Tracker.prototype;+ p.get = noopfn;+ p.set = noopfn;+ p.send = function () {+ var args = Array.prototype.slice.call(arguments);+ args.unshift('send');+ __gaTracker.apply(null, args);+ };+ var __gaTracker = function () {+ var len = arguments.length;+ if (len === 0) {+ return;+ }+ var f = arguments[len - 1];+ if (typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function') {+ if ('send' === arguments[0]) {+ var hitConverted, hitObject = false, action;+ if ('event' === arguments[1]) {+ if ('undefined' !== typeof arguments[3]) {+ hitObject = {+ 'eventAction': arguments[3],+ 'eventCategory': arguments[2],+ 'eventLabel': arguments[4],+ 'value': arguments[5] ? arguments[5] : 1,+ }+ }+ }+ if ('pageview' === arguments[1]) {+ if ('undefined' !== typeof arguments[2]) {+ hitObject = {+ 'eventAction': 'page_view',+ 'page_path': arguments[2],+ }+ }+ }+ if (typeof arguments[2] === 'object') {+ hitObject = arguments[2];+ }+ if (typeof arguments[5] === 'object') {+ Object.assign(hitObject, arguments[5]);+ }+ if ('undefined' !== typeof arguments[1].hitType) {+ hitObject = arguments[1];+ if ('pageview' === hitObject.hitType) {+ hitObject.eventAction = 'page_view';+ }+ }+ if (hitObject) {+ action = 'timing' === arguments[1].hitType ? 'timing_complete' : hitObject.eventAction;+ hitConverted = mapArgs(hitObject);+ __gtagTracker('event', action, hitConverted);+ }+ }+ return;+ }++ function mapArgs(args) {+ var arg, hit = {};+ var gaMap = {+ 'eventCategory': 'event_category',+ 'eventAction': 'event_action',+ 'eventLabel': 'event_label',+ 'eventValue': 'event_value',+ 'nonInteraction': 'non_interaction',+ 'timingCategory': 'event_category',+ 'timingVar': 'name',+ 'timingValue': 'value',+ 'timingLabel': 'event_label',+ 'page': 'page_path',+ 'location': 'page_location',+ 'title': 'page_title',+ };+ for (arg in args) {+ if (!(!args.hasOwnProperty(arg) || !gaMap.hasOwnProperty(arg))) {+ hit[gaMap[arg]] = args[arg];+ } else {+ hit[arg] = args[arg];+ }+ }+ return hit;+ }++ try {+ f.hitCallback();+ } catch (ex) {+ }+ };+ __gaTracker.create = newtracker;+ __gaTracker.getByName = newtracker;+ __gaTracker.getAll = function () {+ return [];+ };+ __gaTracker.remove = noopfn;+ __gaTracker.loaded = true;+ window['__gaTracker'] = __gaTracker;+ })();+ } else {+ console.log("");+ (function () {+ function __gtagTracker() {+ return null;+ }++ window['__gtagTracker'] = __gtagTracker;+ window['gtag'] = __gtagTracker;+ })();+ }+ </script>+ <!-- / Google Analytics by MonsterInsights -->+ <link rel='stylesheet' id='classic-theme-styles-css'+ href='https://www.valdemarsro.dk/wp-includes/css/classic-themes.min.css?ver=1' type='text/css' media='all' />+ <style id='global-styles-inline-css' type='text/css'>+ body {+ --wp--preset--color--black: #000000;+ --wp--preset--color--cyan-bluish-gray: #abb8c3;+ --wp--preset--color--white: #ffffff;+ --wp--preset--color--pale-pink: #f78da7;+ --wp--preset--color--vivid-red: #cf2e2e;+ --wp--preset--color--luminous-vivid-orange: #ff6900;+ --wp--preset--color--luminous-vivid-amber: #fcb900;+ --wp--preset--color--light-green-cyan: #7bdcb5;+ --wp--preset--color--vivid-green-cyan: #00d084;+ --wp--preset--color--pale-cyan-blue: #8ed1fc;+ --wp--preset--color--vivid-cyan-blue: #0693e3;+ --wp--preset--color--vivid-purple: #9b51e0;+ --wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%);+ --wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg, rgb(122, 220, 180) 0%, rgb(0, 208, 130) 100%);+ --wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);+ --wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg, rgba(255, 105, 0, 1) 0%, rgb(207, 46, 46) 100%);+ --wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg, rgb(238, 238, 238) 0%, rgb(169, 184, 195) 100%);+ --wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);+ --wp--preset--gradient--blush-light-purple: linear-gradient(135deg, rgb(255, 206, 236) 0%, rgb(152, 150, 240) 100%);+ --wp--preset--gradient--blush-bordeaux: linear-gradient(135deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 50%, rgb(107, 0, 62) 100%);+ --wp--preset--gradient--luminous-dusk: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);+ --wp--preset--gradient--pale-ocean: linear-gradient(135deg, rgb(255, 245, 203) 0%, rgb(182, 227, 212) 50%, rgb(51, 167, 181) 100%);+ --wp--preset--gradient--electric-grass: linear-gradient(135deg, rgb(202, 248, 128) 0%, rgb(113, 206, 126) 100%);+ --wp--preset--gradient--midnight: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);+ --wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');+ --wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');+ --wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');+ --wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');+ --wp--preset--duotone--midnight: url('#wp-duotone-midnight');+ --wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');+ --wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');+ --wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');+ --wp--preset--font-size--small: 13px;+ --wp--preset--font-size--medium: 20px;+ --wp--preset--font-size--large: 36px;+ --wp--preset--font-size--x-large: 42px;+ --wp--preset--spacing--20: 0.44rem;+ --wp--preset--spacing--30: 0.67rem;+ --wp--preset--spacing--40: 1rem;+ --wp--preset--spacing--50: 1.5rem;+ --wp--preset--spacing--60: 2.25rem;+ --wp--preset--spacing--70: 3.38rem;+ --wp--preset--spacing--80: 5.06rem;+ }++ :where(.is-layout-flex) {+ gap: 0.5em;+ }++ body .is-layout-flow>.alignleft {+ float: left;+ margin-inline-start: 0;+ margin-inline-end: 2em;+ }++ body .is-layout-flow>.alignright {+ float: right;+ margin-inline-start: 2em;+ margin-inline-end: 0;+ }++ body .is-layout-flow>.aligncenter {+ margin-left: auto !important;+ margin-right: auto !important;+ }++ body .is-layout-constrained>.alignleft {+ float: left;+ margin-inline-start: 0;+ margin-inline-end: 2em;+ }++ body .is-layout-constrained>.alignright {+ float: right;+ margin-inline-start: 2em;+ margin-inline-end: 0;+ }++ body .is-layout-constrained>.aligncenter {+ margin-left: auto !important;+ margin-right: auto !important;+ }++ body .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {+ max-width: var(--wp--style--global--content-size);+ margin-left: auto !important;+ margin-right: auto !important;+ }++ body .is-layout-constrained>.alignwide {+ max-width: var(--wp--style--global--wide-size);+ }++ body .is-layout-flex {+ display: flex;+ }++ body .is-layout-flex {+ flex-wrap: wrap;+ align-items: center;+ }++ body .is-layout-flex>* {+ margin: 0;+ }++ :where(.wp-block-columns.is-layout-flex) {+ gap: 2em;+ }++ .has-black-color {+ color: var(--wp--preset--color--black) !important;+ }++ .has-cyan-bluish-gray-color {+ color: var(--wp--preset--color--cyan-bluish-gray) !important;+ }++ .has-white-color {+ color: var(--wp--preset--color--white) !important;+ }++ .has-pale-pink-color {+ color: var(--wp--preset--color--pale-pink) !important;+ }++ .has-vivid-red-color {+ color: var(--wp--preset--color--vivid-red) !important;+ }++ .has-luminous-vivid-orange-color {+ color: var(--wp--preset--color--luminous-vivid-orange) !important;+ }++ .has-luminous-vivid-amber-color {+ color: var(--wp--preset--color--luminous-vivid-amber) !important;+ }++ .has-light-green-cyan-color {+ color: var(--wp--preset--color--light-green-cyan) !important;+ }++ .has-vivid-green-cyan-color {+ color: var(--wp--preset--color--vivid-green-cyan) !important;+ }++ .has-pale-cyan-blue-color {+ color: var(--wp--preset--color--pale-cyan-blue) !important;+ }++ .has-vivid-cyan-blue-color {+ color: var(--wp--preset--color--vivid-cyan-blue) !important;+ }++ .has-vivid-purple-color {+ color: var(--wp--preset--color--vivid-purple) !important;+ }++ .has-black-background-color {+ background-color: var(--wp--preset--color--black) !important;+ }++ .has-cyan-bluish-gray-background-color {+ background-color: var(--wp--preset--color--cyan-bluish-gray) !important;+ }++ .has-white-background-color {+ background-color: var(--wp--preset--color--white) !important;+ }++ .has-pale-pink-background-color {+ background-color: var(--wp--preset--color--pale-pink) !important;+ }++ .has-vivid-red-background-color {+ background-color: var(--wp--preset--color--vivid-red) !important;+ }++ .has-luminous-vivid-orange-background-color {+ background-color: var(--wp--preset--color--luminous-vivid-orange) !important;+ }++ .has-luminous-vivid-amber-background-color {+ background-color: var(--wp--preset--color--luminous-vivid-amber) !important;+ }++ .has-light-green-cyan-background-color {+ background-color: var(--wp--preset--color--light-green-cyan) !important;+ }++ .has-vivid-green-cyan-background-color {+ background-color: var(--wp--preset--color--vivid-green-cyan) !important;+ }++ .has-pale-cyan-blue-background-color {+ background-color: var(--wp--preset--color--pale-cyan-blue) !important;+ }++ .has-vivid-cyan-blue-background-color {+ background-color: var(--wp--preset--color--vivid-cyan-blue) !important;+ }++ .has-vivid-purple-background-color {+ background-color: var(--wp--preset--color--vivid-purple) !important;+ }++ .has-black-border-color {+ border-color: var(--wp--preset--color--black) !important;+ }++ .has-cyan-bluish-gray-border-color {+ border-color: var(--wp--preset--color--cyan-bluish-gray) !important;+ }++ .has-white-border-color {+ border-color: var(--wp--preset--color--white) !important;+ }++ .has-pale-pink-border-color {+ border-color: var(--wp--preset--color--pale-pink) !important;+ }++ .has-vivid-red-border-color {+ border-color: var(--wp--preset--color--vivid-red) !important;+ }++ .has-luminous-vivid-orange-border-color {+ border-color: var(--wp--preset--color--luminous-vivid-orange) !important;+ }++ .has-luminous-vivid-amber-border-color {+ border-color: var(--wp--preset--color--luminous-vivid-amber) !important;+ }++ .has-light-green-cyan-border-color {+ border-color: var(--wp--preset--color--light-green-cyan) !important;+ }++ .has-vivid-green-cyan-border-color {+ border-color: var(--wp--preset--color--vivid-green-cyan) !important;+ }++ .has-pale-cyan-blue-border-color {+ border-color: var(--wp--preset--color--pale-cyan-blue) !important;+ }++ .has-vivid-cyan-blue-border-color {+ border-color: var(--wp--preset--color--vivid-cyan-blue) !important;+ }++ .has-vivid-purple-border-color {+ border-color: var(--wp--preset--color--vivid-purple) !important;+ }++ .has-vivid-cyan-blue-to-vivid-purple-gradient-background {+ background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;+ }++ .has-light-green-cyan-to-vivid-green-cyan-gradient-background {+ background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;+ }++ .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background {+ background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;+ }++ .has-luminous-vivid-orange-to-vivid-red-gradient-background {+ background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;+ }++ .has-very-light-gray-to-cyan-bluish-gray-gradient-background {+ background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;+ }++ .has-cool-to-warm-spectrum-gradient-background {+ background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;+ }++ .has-blush-light-purple-gradient-background {+ background: var(--wp--preset--gradient--blush-light-purple) !important;+ }++ .has-blush-bordeaux-gradient-background {+ background: var(--wp--preset--gradient--blush-bordeaux) !important;+ }++ .has-luminous-dusk-gradient-background {+ background: var(--wp--preset--gradient--luminous-dusk) !important;+ }++ .has-pale-ocean-gradient-background {+ background: var(--wp--preset--gradient--pale-ocean) !important;+ }++ .has-electric-grass-gradient-background {+ background: var(--wp--preset--gradient--electric-grass) !important;+ }++ .has-midnight-gradient-background {+ background: var(--wp--preset--gradient--midnight) !important;+ }++ .has-small-font-size {+ font-size: var(--wp--preset--font-size--small) !important;+ }++ .has-medium-font-size {+ font-size: var(--wp--preset--font-size--medium) !important;+ }++ .has-large-font-size {+ font-size: var(--wp--preset--font-size--large) !important;+ }++ .has-x-large-font-size {+ font-size: var(--wp--preset--font-size--x-large) !important;+ }++ .wp-block-navigation a:where(:not(.wp-element-button)) {+ color: inherit;+ }++ :where(.wp-block-columns.is-layout-flex) {+ gap: 2em;+ }++ .wp-block-pullquote {+ font-size: 1.5em;+ line-height: 1.6;+ }+ </style>+ <link rel='stylesheet' id='opensans-css'+ href='//fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C400i%2C600%2C700&display=swap&ver=6.1'+ type='text/css' media='all' />+ <link rel='stylesheet' id='style-css'+ href='https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/style.css?v=07112022a&ver=6.1'+ type='text/css' media='all' />+ <link rel='stylesheet' id='fa-css'+ href='https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/fa/css/all.min.css?ver=6.1'+ type='text/css' media='all' />+ <script type='text/javascript'+ src='https://www.valdemarsro.dk/wp-content/plugins/google-analytics-for-wordpress/assets/js/frontend-gtag.min.js?ver=8.10.0'+ id='monsterinsights-frontend-script-js'></script>+ <script data-cfasync="false" data-wpfc-render="false" type="text/javascript"+ id='monsterinsights-frontend-script-js-extra'>/* <![CDATA[ */+ var monsterinsights_frontend = { "js_events_tracking": "true", "download_extensions": "pdf,doc,ppt,xls,zip,docx,pptx,xlsx", "inbound_paths": "[]", "home_url": "https:\/\/www.valdemarsro.dk", "hash_tracking": "false", "ua": "UA-5530254-7", "v4_id": "" };/* ]]> */+ </script>+ <link rel="https://api.w.org/" href="https://www.valdemarsro.dk/wp-json/" />+ <link rel="alternate" type="application/json" href="https://www.valdemarsro.dk/wp-json/wp/v2/posts/30315" />+ <link rel='shortlink' href='http://wp.me/p9s7E-7SX' />+ <link rel="alternate" type="application/json+oembed"+ href="https://www.valdemarsro.dk/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.valdemarsro.dk%2Fone-pot-pasta%2F" />+ <link rel="alternate" type="text/xml+oembed"+ href="https://www.valdemarsro.dk/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.valdemarsro.dk%2Fone-pot-pasta%2F&format=xml" />+</head>++<body class="page-one-pot-pasta" itemscope="itemscope" itemtype="http://schema.org/WebPage">+ <!-- Google Tag Manager (noscript) -->+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KPHRD4D" height="0" width="0"+ style="display:none;visibility:hidden"></iframe></noscript>+ <!-- End Google Tag Manager (noscript) -->+ <div id="cncpt-dsk_top"></div>+ <div id="header-wrapper" itemscope="itemscope" itemtype="http://schema.org/WPHeader">+ <style>+ #header-wrapper {+ padding-top: 0;+ }++ #top-container {+ padding-top: 158px;+ }+ </style>+ <script>function _dismiss_promo_top() { document.location = '/one-pot-pasta/?dismiss_promo_top=1'; }</script>+ <div id="promotop" style="position:relative;margin-bottom:10px;">+ <style>+ #promotop {+ background: #2b536c;+ text-align: center;+ padding: 12px;+ }++ #promotop,+ #promotop a {+ color: #fff;+ font-size: 16px;+ font-weight: 400;+ }+ }+ </style>+ <a href="/madplan/" id="topbar_1" onclick="return _promotion_click('topbar_1', '');">+ <div style="padding-bottom:6px;">☆ NEM MADPLAN MED INDKØBSLISTE ☆ </div>+ <em>Prøv <b>gratis</b> i 7 dage her >></em>+ </a>+ <script>+ document.addEventListener('DOMContentLoaded', (event) => { _promotion_view('topbar_1', ''); });+ </script><span style="position:absolute;right:10px;top:10px;font-size:20px;cursor:pointer;"+ onclick="_dismiss_promo_top();">×</span>+ </div>+ <div id="header">+ <style>+ #header-features>li {+ float: left;+ margin-right: 20px;+ position: relative;+ }++ #header-app {+ order: 50;+ text-transform: uppercase;+ }++ @media only screen and (max-width: 1024px) {+ #header-logo {+ flex-grow: 1;+ }++ #header-features {+ display: none;+ }+ }++ @media only screen and (max-width: 775px) {+ #header-search-mobile {+ display: block;+ }+ }++ #header-burger-active {+ z-index: 1100;+ }+ </style>+ <div id="header-search-mobile">+ <a href="/premium/soeg/"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-search2.svg"+ style="width:20px;vertical-align:middle;margin-right:4px;" width="20" height="19" /></a>+ </div>+ <div id="header-nav" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"+ role="navigation" class="desktop">+ <ul id="menu-ny-topmenu" class="menu">+ <li id="header-search">+ <a href="/premium/soeg/"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-search2.svg"+ style="width:20px;vertical-align:middle;margin-right:4px;position:relative;top:-3px;"+ width="20" height="19" /></a>+ </li>+ <li id="menu-item-28135"+ class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-28135">+ <a href="#">Opskrifter</a>+ <ul class="sub-menu">+ <li id="menu-item-28075"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28075">+ <a href="https://www.valdemarsro.dk/opskriftsoversigt/">Opskrifter</a>+ </li>+ <li id="menu-item-28077"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28077">+ <a href="https://www.valdemarsro.dk/raavare-indeks/">Opskrifter efter råvarer</a>+ </li>+ <li id="menu-item-48996"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-48996">+ <a href="https://www.valdemarsro.dk/madplan/">Madplan</a>+ </li>+ </ul>+ </li>+ <li id="header-premium">+ <a href="/valdemarsro-premium/">+ <img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-premium.svg"+ style="width:16px;vertical-align:middle;margin-right:4px;position:relative;top:-2px;"+ width="16" height="15" />Få Premium+ </a>+ </li>+ <li id="menu-item-48996"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-48996">+ <a href="https://www.valdemarsro.dk/madplan/">Madplan</a>+ </li>+ </ul>+ </div>+ <div id="header-logo">+ <a href="/"><img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/logo3.png"+ width="300" height="44" alt="Valdemarsro" /></a>+ </div>+ <ul id="header-features" class="menu">+ <li id="menu-item-28137"+ class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-28137">+ <a href="#">Mere Valdemarsro</a>+ <ul class="sub-menu">+ <li id="menu-item-28099"+ class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-28099">+ <a href="/livsstil/">Livsstil</a>+ </li>+ <li id="menu-item-28113"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28113">+ <a href="/rejser/">Rejser</a>+ </li>+ <li id="menu-item-28098"+ class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-28098">+ <a href="/boger/">Bøger</a>+ </li>+ <li id="menu-item-28083"+ class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-28083"+ style="margin-bottom:40px;">+ <a href="/i-haven/">I haven</a>+ </li>+ <li id="menu-item-28093"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28093">+ <a href="/valdemarsro-om-os/">Om Valdemarsro</a>+ </li>+ <li id="menu-item-42290"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-42290">+ <a href="/nyhedsbrev/">Nyhedsbrev</a>+ </li>+ <li id="menu-item-46712"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-46712">+ <a href="/support/">Support Premium</a>+ </li>+ <li id="menu-item-35280"+ class="menu-item menu-item-type-post_type menu-item-object-page menu-item-35280">+ <a href="/kontakt/">Kontakt</a>+ </li>+ </ul>+ </li>+ <li id="header-shop">+ <a href="/kogeboeger/">Kogebøger</a>+ </li>+ <li id="header-user">+ <a href="#" onclick="return _open_modal('login-modal', 1);">+ <img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-key.svg"+ style="width:16px;vertical-align:middle;margin-right:4px;position:relative;top:-2px;"+ width="16" height="15" />Log på+ </a>+ </li>+ </ul>+ <!--<div id="header-app">+ <!--<a href="/valdemarsro-app/"><i class="fas fa-mobile-alt"></i>App</a>+ <a href="/premium/soeg/"><img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-search2.svg" style="width:16px;vertical-align:middle;margin-right:4px;"/</a>+</div>-->+ <div id="header-burger">+ <a href="#" onclick="return openBurger();"><i class="fas fa-bars"></i></a>+ </div>+ </div>+ </div>+ <style>+ #header-burger-active a {+ text-transform: uppercase;+ }+ </style>+ <div id="header-burger-active">+ <div class="title">Menu<span class="close" onclick="closeBurger();">×</span></div>+ <ul class="menu">+ <li class="menu-item menu-item-has-children">+ <a href="#">Opskrifter</a>+ <ul class="sub-menu">+ <li class="menu-item">+ <a href="/opskriftsoversigt/">Opskrifter</a>+ </li>+ <li class="menu-item">+ <a href="/premium/soeg/">Søg <img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-search2.svg"+ style="width:16px;vertical-align:middle;margin-left:4px;" width="20" height="19" /></a>+ </li>+ <li class="menu-item">+ <a href="/raavare-indeks/">Søg opskrifter efter råvarer</a>+ </li>+ </ul>+ </li>+ <li class="menu-item" style="margin-bottom:20px;">+ <a href="/madplan/">Madplan</a>+ </li>+ <li class="menu-item">+ <a href="/valdemarsro-premium/">Få Valdemarsro Premium</a>+ </li>+ <li class="menu-item" style="margin-bottom:20px;">+ <a href="#" onclick="return _open_modal('login-modal', 1);">Log på Valdemarsro Premium</a>+ </li>+ <li class="menu-item">+ <a href="/kogeboeger/">Valdemarsro kogebøger</a>+ </li>+ <li class="menu-item menu-item-has-children">+ <a href="#">Livsstil indlæg</a>+ <ul class="sub-menu">+ <li class="menu-item">+ <a href="/livsstil/">Livsstil</a>+ </li>+ <li class="menu-item">+ <a href="/boger/">Bøger</a>+ </li>+ <li class="menu-item">+ <a href="/i-haven/">I haven</a>+ </li>+ <li class="menu-item">+ <a href="/rejser/">Rejser</a>+ </li>+ </ul>+ </li>+ <li class="menu-item">+ <a href="/valdemarsro-om-os/">Om Valdemarsro</a>+ </li>+ <li class="menu-item">+ <a href="/kontakt/">Kontakt</a>+ </li>+ <!--+ <li>+ <a href="#" onclick="return _open_modal('login-modal', 1);">Log på Valdemarsro Premium</a>+ </li>+ -->+ </ul>+ <div class="social">+ <!--<a href="https://www.facebook.com/Valdemarsro/"><i class="fab fa-facebook"></i></a>+ <a href="https://www.instagram.com/valdemarsro_dk/"><i class="fab fa-instagram"></i></a>+ <a href="https://www.youtube.com/user/valdemarsr0?sub_confirmation=1"><i class="fab fa-youtube-square"></i></a>-->+ <a class="sm in" href="https://www.instagram.com/valdemarsro_dk/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/instagram1.png"+ width="15" height="15" /></a>+ <a class="sm fb" href="https://www.facebook.com/Valdemarsro/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/facebook1.png" width="8"+ height="15" /></a>+ <a class="sm yt" href="https://www.youtube.com/user/valdemarsr0?sub_confirmation=1" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/youtube1.png" width="20"+ height="15" /></a>+ <a class="sm pi" href="https://dk.pinterest.com/valdemarsro/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/pinterest1.png"+ width="11" height="15" /></a>+ </div>+ </div>+ <div class="container" id="top-container">+ <!-- Wallpaper -->+ <div id="adn-00000000000bae7f" style="display:none;" class="vroad"></div>+ <div id="adn-00000000000bae82" style="display:none;" class="vroad vroadmob"></div>+ <div id="cncpt-lb1"></div>+ <!--<div id="cncpt-mob1"></div>-->+ <div id="cncpt-mob-top"></div>+ <div id="main">+ <div class="main-wrapper single-post" itemscope="itemscope" itemtype="http://schema.org/Recipe">+ <div class="hidden-schema">+ <span itemprop="publisher" itemscope="itemscope" itemtype="https://schema.org/Organization">+ <span itemprop="name">Valdemarsro</span>+ <span itemprop="logo" itemscope="itemscope" itemtype="https://schema.org/ImageObject">+ <span+ itemprop="url">https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/header-logo.png</span>+ </span>+ </span>+ <span itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">+ <span itemprop="name">Ann-Christine Hellerup Brandt</span>+ </span>+ <span itemprop="mainEntityOfPage">https://www.valdemarsro.dk/one-pot-pasta/</span>+ <span itemprop="recipeCategory">Aftensmad</span>+ <span itemprop="keywords">Bålmad, Familiefavoritter, Nem Hverdagsmad, Opskrifter til børn -+ Hverdagsfavoritter børn, Pasta</span>+ </div>++ <div class="row clear-after">+ <div class="col span_12 post-common">+ <div class="post-category">Opskrift</div>+ <div class="title">+ <h1 itemprop="headline">One pot pasta – verdens nemmeste pasta</h1>+ </div>+ <div class="title-separator"></div>+ <div class="content post-image-right">+ <div class="image recipe-image">+ <img src="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-4.jpg"+ itemprop="image" width="1000" height="715" />+ <img class="favorite"+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/svg-favorite.svg"+ onclick="return _favorite_toggle(30315, this);" />+ </div>+ <div itemprop="description" id="recipe-intro">+ <img class="printonly"+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/logo3.png"+ width="240" style="filter:grayscale(100%);" />+ <p>One pot pasta kan laves på adskillige måder og er ganske simpelt den perfekte+ hverdagsredning til en stjerneskøn aftensmad, som smager helt og aldeles fantastisk.+ </p>+ <p>Når man i denne tilberedningsmetode kommer alt i en gryde på en og samme tid, så sker+ der nemlig det magiske at alle ingredienserne tager smag fra hinanden og pastaen,+ som ellers traditionelt koges for sig selv og først derefter blandes med saucen,+ bliver helt ekstraordinær lækker og smovset.</p>+ <p>Det smager ganske enkelt bare vildt godt!</p>+ <p><strong>Prøv også: </strong><em><a href="https://www.valdemarsro.dk/madplan/"+ target="_blank" rel="noopener noreferrer">ugentligt madplan fra Valdemarsro+ >></a></em></p>+ <div class="clear"></div>+ <div id="cncpt-mob1"></div>+ <div class="post-recipe">+ <div class="carrot"></div>+ <div class="hidden-schema"><span itemprop="cookTime">PT25M</span><span+ itemprop="totalTime">PT10M</span><span itemprop="recipeYield">4</span></div>+ <h2 itemprop="name">One Pot Pasta med chorizo</h2>+ <div class="recipe-stats">+ <div class="recipe-stat"><span class="recipe-stat-label">Tid i+ alt</span><strong>25 min.</strong></div>+ <div class="recipe-stat"><span+ class="recipe-stat-label">Arbejdstid</span><strong>10 min.</strong>+ </div>+ <div class="recipe-stat"><span class="recipe-stat-label">Antal</span><strong+ style="cursor:pointer;"+ onclick="_open_modal_wrapper(30278, 4, 'pers.', 4);">4 pers. <i+ class="fas fa-sort"></i></strong></div>+ </div>+ <div class="row clear-after">+ <div class="col span_6">+ <div class="subtitle">Ingredienser</div>+ <ul class="ingredientlist content">+ <li itemprop="recipeIngredient">400 g spaghetti</li>+ <li itemprop="recipeIngredient">1 dåse hakkede tomater</li>+ <li itemprop="recipeIngredient">1 håndfuld frisk basilikum, bladene+ herfra</li>+ <li itemprop="recipeIngredient">1 løg, finthakket</li>+ <li itemprop="recipeIngredient">2 fed hvidløg, finthakket</li>+ <li itemprop="recipeIngredient">20 cherrytomater, skåret i både</li>+ <li itemprop="recipeIngredient">0,50 squash, groftrevet</li>+ <li itemprop="recipeIngredient">1 tsk oregano, tørret</li>+ <li itemprop="recipeIngredient">50 g chorizo, finthakket</li>+ <li itemprop="recipeIngredient">5 dl grøntsagsbouillon</li>+ <li itemprop="recipeIngredient">2 spsk olivenolie</li>+ <li itemprop="recipeIngredient">1 tsk chiliflager, kan undlades</li>+ <li itemprop="recipeIngredient">1 tsk salt</li>+ <li itemprop="recipeIngredient">sort peber, friskkværnet</li>+ <li class="ingredient-header">Til servering</li>+ <li itemprop="recipeIngredient">50 g parmesan, friskrevet til servering+ </li>+ <li itemprop="recipeIngredient">1 håndfuld frisk basilikum, blade</li>+ </ul><a class="btn btn-print" href="#"+ onclick="window.print();return false;">Udskriv</a><br /><a+ class="btn btn-shopping btn-locked" href="/valdemarsro-premium/">Føj til+ indkøbsseddel</a><br /><a class="btn btn-addfavorite btn-locked"+ href="/valdemarsro-premium/">Føj til favoritter</a>+ </div>+ <div class="col span_6">+ <div class="subtitle">Fremgangsmåde</div>+ <div itemprop="recipeInstructions" class="content">+ <p>Helt enkelt som navnet antyder, så kom alle ingredienserne i en stor+ gryde på én gang.</p>+ <p>Kog retten op, rør godt rundt i gryden og skru ned for varmen.</p>+ <p>Lad det simrekoge under låg i 10-12 minutter, til spaghettien er+ perfekt kogt – al dente med lidt bid i.</p>+ <p>Server med revet parmesan og basilikum.</p>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ <style>+ .nutrition-trigger {+ background: #f5f5f5;+ padding: 0 20px;+ margin-bottom: 20px;+ }++ .nutrition {+ display: none;+ padding: 20px 0;+ }++ .nutrition h2 {+ text-align: center;+ }++ .nutrition-trigger h3 {+ text-transform: uppercase;+ font-weight: 500;+ font-size: 14px;+ position: relative;+ }++ .nutrition-trigger>h3 {+ padding: 20px 0;+ cursor: pointer;+ margin-bottom: 0;+ }++ .nutrition-trigger>h3:after {+ position: absolute;+ top: 18px;+ right: 0;+ content: '';+ display: block;+ width: 24px;+ height: 24px;+ transition: all .2s;+ background-position: center right;+ background-repeat: no-repeat;+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAArElEQVRIS+3TIQ4CMRCF4W8NggPAJTCg8BhOi8bgV4HhEnAEFCmhyYawO91N1rWymXl/35tpY+bTzKyvAsKEa0STI2qxwBHPQGWFM17Y/9b2zeCKLe44DECS+AUb3LArBXQb+yAlNYMfbUigSDy5idb0n1Dqy7FEEYaAJNaFPL4Zrwvm8ymNHOSZdSHpLnx5biwFZCcnLAvXd5SD8EP1FYxxMAlSAWFsNaIwojfcwCMZQwCQhgAAAABJRU5ErkJggg==);+ }++ .nutrition-trigger>h3.toggled:after {+ transform: rotate(180deg);+ }++ .nutrition strong {+ font-weight: 600;+ display: block;+ margin-bottom: 5px;+ }++ .nutrition-wrapper,+ .nutrition-fake {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ }++ .nutrition-wrapper>div,+ .nutrition-fake>div {+ flex-basis: 50%;+ max-width: 50%;+ }++ .nutrition-wrapper .nutrition-wrapper>div {+ flex-basis: 50%;+ }++ .nutrition-wrapper div div {+ margin-bottom: 15px;+ }++ .nutrition-wrapper p {+ font-size: 14px;+ text-align: center;+ flex-basis: 100%;+ }++ .post-recipe {+ margin-bottom: 0;+ }++ .blur {+ filter: blur(4px);+ }++ .nutrition-fake {+ position: relative;+ }++ .nutrition-fake-overlay {+ text-align: center;+ z-index: 10;+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ display: flex;+ flex-direction: column;+ flex-basis: 100% !important;+ max-width: 100% !important;+ justify-content: center;+ align-items: center;+ }++ @media(max-width:960px) {++ .nutrition>.nutrition-wrapper,+ .nutrition-fake {+ display: block;+ }++ .nutrition-wrapper>div,+ .nutrition-fake>div {+ max-width: 100%;+ margin-top: 20px;+ }+ }+ </style>+ <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>+ <div class="nutrition-trigger print-hide">+ <h3+ onclick="$(this).parent().find('.nutrition').slideToggle();$(this).toggleClass('toggled');">+ Næringsindhold</h3>+ <div class="nutrition">+ <div class="nutrition-fake">+ <div class="nutrition-fake-overlay">+ <strong style="line-height:1.3;">For at se næringsindhold skal du være logget+ ind og have et aktivt Premium abonnement.</strong>+ <a style="background-color:#2b536c;color:#fff;border-radius:10px;padding:15px 30px;display:inline-block;margin-top:20px;"+ href="/valdemarsro-premium/" target="_blank" rel="noopener">Læs om+ Valdemarsro Premium >></a>+ </div>+ <div style="opacity:.3;">+ <img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/premium/fake_chart.png" />+ </div>+ <div style="opacity:.3;">+ <div class="nutrition-wrapper">+ <div>+ <h3> Pr. pers.</h3>+ <div>+ <strong>Energi</strong>+ <span class="blur">xxxx</span><br />(<span class="blur">xxx</span>+ kcal)+ </div>+ <div>+ <strong>Fedt</strong>+ <span class="blur">xxxx</span> gram+ </div>+ <div>+ <strong>Kulhydrat</strong>+ <span class="blur">xxxx</span> gram+ </div>+ <div>+ <strong>Protein</strong>+ <span class="blur">xxxx</span> gram+ </div>+ </div>+ <div>+ <h3>Total</h3>+ <div>+ <strong>Energi</strong>+ <span class="blur">xxxx</span><br />(<span class="blur">xxx</span>+ kcal)+ </div>+ <div>+ <strong>Fedt</strong>+ <span class="blur">xxxx</span> gram+ </div>+ <div>+ <strong>Kulhydrat</strong>+ <span class="blur">xxxx</span> gram+ </div>+ <div>+ <strong>Protein</strong>+ <span class="blur">xxxx</span> gram+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ <script>+ window.chartColors = {+ fats: 'rgb(134, 153, 167)',+ carbs: 'rgb(203, 215, 221)',+ proteins: 'rgb(233, 227, 215)'+ };++ var config1 = {+ type: 'pie',+ data: {+ datasets: [{+ data: [+ 14.2,+ 67.0,+ 18.8],+ backgroundColor: [+ window.chartColors.fats,+ window.chartColors.carbs,+ window.chartColors.proteins+ ]+ }],+ labels: [+ 'Fedt',+ 'Kulhydrat',+ 'Protein'+ ]+ },+ options: {+ tooltips: {+ mode: 'label',+ callbacks: {+ label: function (tooltip, data) {+ console.log(tooltip);+ console.log(data);+ return ' ' + data['labels'][tooltip['index']] + ': ' + data['datasets'][0]['data'][tooltip['index']] + '%';+ }+ }+ }+ }+ };+ </script>+ </div>+ </div>+ <!--<div id="adn-00000000000bae80" style="margin-bottom:20px;display:none;" class="vroad"></div>-->+ <!--<div id="cncpt-dsk_lb2" style="margin-bottom:20px;"></div>-->+ <div class="row clear-after" id="after-recipe">+ <div class="col sidebar-on-right">+ <div class="wrapper">+ <div class="content">+ <style>+ .note-trigger {+ background: #f5f5f5;+ padding: 0 20px;+ margin-bottom: 20px;+ }++ .note-trigger>h3 {+ text-transform: uppercase;+ font-weight: 500;+ font-size: 14px;+ position: relative;+ padding: 20px 0;+ cursor: pointer;+ margin-bottom: 0;+ }++ .note-trigger>h3:after {+ position: absolute;+ top: 18px;+ right: 0;+ content: '';+ display: block;+ width: 24px;+ height: 24px;+ transition: all .2s;+ background-position: center right;+ background-repeat: no-repeat;+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAArElEQVRIS+3TIQ4CMRCF4W8NggPAJTCg8BhOi8bgV4HhEnAEFCmhyYawO91N1rWymXl/35tpY+bTzKyvAsKEa0STI2qxwBHPQGWFM17Y/9b2zeCKLe44DECS+AUb3LArBXQb+yAlNYMfbUigSDy5idb0n1Dqy7FEEYaAJNaFPL4Zrwvm8ymNHOSZdSHpLnx5biwFZCcnLAvXd5SD8EP1FYxxMAlSAWFsNaIwojfcwCMZQwCQhgAAAABJRU5ErkJggg==);+ }++ .note-trigger>h3.toggled:after {+ transform: rotate(180deg);+ }++ .note {+ padding-bottom: 20px;+ }++ .note textarea {+ width: 100%;+ height: 100px;+ max-width: 100%;+ border: 1px solid #ccc;+ padding: 10px;+ margin-bottom: 10px;+ resize: vertical;+ }++ .note button {+ background: #844444;+ color: #fff;+ border: none;+ height: 30px;+ text-align: center;+ cursor: pointer;+ font-weight: 700;+ font-size: 14px;+ padding: 0 20px;+ }++ /*.note input[type="checkbox"]:checked{filter:invert(100%) hue-rotate(318deg) brightness(1.7);}*/+ .note input[type="checkbox"]:checked {+ filter: grayscale(1) invert(1) brightness(5);+ }+ </style>+ <div class="note-trigger print-hide">+ <h3+ onclick="$(this).parent().find('.note').slideToggle();$(this).toggleClass('toggled');">+ Mine noter til opskriften</h3>+ <div class="note" style="display:none;">+ <form method="post">+ <strong style="line-height:1.3;">For at bruge denne funktion skal du være+ logget ind og have et aktivt Premium abonnement.</strong>+ <br />+ <a style="background-color:#2b536c;color:#fff;border-radius:10px;padding:15px 30px;display:inline-block;margin-top:20px;text-decoration:none;"+ href="/valdemarsro-premium/" target="_blank" rel="noopener">Læs om+ Valdemarsro Premium >></a>+ <br /><br />+ <textarea name="recipe_note" maxlength="500" readonly disabled></textarea>+ <button type="submit" readonly disabled>Gem note</button> + <label for="include_in_print">+ <input type="checkbox" name="include_in_print" id="include_in_print"+ value="1" checked readonly disabled /> Inkluder note i udskrivning+ </label>+ </form>+ </div>+ </div>+ <div id="adn-00000000000bae83" style="clear:both;margin-bottom:20px;display:none;"+ class="vroad vroadmob"></div>+ <div id="cncpt-mob2" style="clear:both;margin-bottom:20px;"></div>+ <h3><strong>Tip til opskriften</strong></h3>+ <ul>+ <li>Mængden på boullion er færdigblandet, kik på pakken og bland op med vand efter+ anvisning til du har den mængde færdigblandet boullion du skal bruge.</li>+ <li>Du kan bruge almindelig tørret pasta og fuldkornspasta, alt efter smag, til one+ pot pasta. Det kan være spaghetti, skruer, rør eller lignende.</li>+ <li>Andre typer pasta, som fx. glutenfri pasta, frisk pasta, linsepasta mv kan agere+ anderledes. Kik efter kogetid på emballagen og hvis den er angivet til under 8-9+ minutter, så vil det nok være bedre at koge pasta og sauce for sig.</li>+ <li>Hvis one pot pasta brænder på i gryden, så kan det skyldes for høj varme, ridser+ i grydens bund eller at gryden ikke er egnet til det. Smør eventuelt med olie og+ rør forsigtigt et par gange undervejs i tilberedningen.</li>+ <li>Den gryde jeg bruger er en støbejernsgryde på 4,2 liter. Du behøver ikke bruge+ en støbejernsgryde for at lave denne ret.</li>+ <li>Chiliflager kan variere meget i styrke. Dem jeg bruger er milde og aromatiske.+ Er dine chiliflager meget stærke og er I ikke vild stærk mad, så undlad chili+ eller brug mindre, så det passer til jeres smagsløg.</li>+ <li>Retten kan fryses, før den koges. Kom det hele utilberedt i frostsikre beholder+ uden bouillion og frys ned. Tø op i køleskab eller på køkkenbordet, kom i en+ gryde, tilsæt boullion og kog.<br />+ Retten bliver lidt udkogt, hvis den fryses færdigtilberedt.</p>+ <p class="p1"><span class="s1">+ <div class="kogebog-side"><img+ src="/wp-content/2020/09/Valdemarsro_aftensmad.png" width="1394"+ height="1785" />+ <p>Denne opskrift kan du også finde i kogebogen<br /><a+ href="/kogebog-valdemarsro-aftensmad/">Valdemarsro+ Aftensmad</a> på side 121</p>+ </div>+ </span></p>+ </li>+ </ul>+ <p><a href="https://youtu.be/18V8I8i11yw" target="_blank" rel="noopener noreferrer"><img+ decoding="async" class="alignleft wp-image-29382"+ src="http://www.valdemarsro.dk/wp-content/2016/10/YouTube_ikon_valdemarsro.png"+ alt="valdemarsro youtube" width="45" height="31" /></a><em><a+ href="https://youtu.be/18V8I8i11yw" target="_blank"+ rel="noopener noreferrer">Se videoen, hvor jeg viser opskriften her+ >></a></em></p>+ <p> </p>+ <p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-59883"+ src="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-1-1.jpg"+ alt="one pot pasta" width="1000" height="1400"+ srcset="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-1-1.jpg 1000w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-1-1-214x300.jpg 214w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-1-1-600x840.jpg 600w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-1-1-768x1075.jpg 768w"+ sizes="(max-width: 1000px) 100vw, 1000px" /></p>+ <p>Prøv lige at se hvor uimodståelig lækker denne pastaret ser ud, når den er færdig til+ servering – meget nemmere bliver det vist ikke ♡</p>+ <p>Vores one pot pasta opskrift, som jeg deler med jer i dag, er vores familie favorit+ med tomat og chorizo, som over nogle ganges tilberedning har udviklet sig og er+ blevet justeret til med flere råvarer, cremet konsistens fra revet squash og god+ smag fra chorizo – og nu er det blevet helt fast, sådan som vi laver den lækre+ udgave med chorizo, tomat og basilikum.</p>+ <p>Det er kun fantasien, der sætter grænsen for de skønne variationer som denne+ tilberedningsmetode kan bruges på, ofte finder vi på ud fra hvad vi lige har, men+ der er nogle kombinationer, som vi laver igen og igen, og køber ind efter –+ denne one pot pasta med chorizo og frisk basilikum er en af dem.</p>+ <p>Det var muligvis <a href="http://www.marthastewart.com" target="_blank"+ rel="noopener noreferrer">Martha Stewart</a>, der oprindeligt kom på ideen om+ ‘one pot pasta’. En dejlig ret, som er blevet anerkendt og rost for at+ give en helt utrolig velsmagende og perfekt pastaservering – helt, helt+ anderledes, end når man tilbereder pasta og sauce hver for sig.<br />+ <img decoding="async" loading="lazy" class="alignnone size-full wp-image-55553"+ src="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-opskrift.jpg"+ alt="one pot pasta" width="1000" height="1400"+ srcset="https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-opskrift.jpg 1000w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-opskrift-214x300.jpg 214w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-opskrift-600x840.jpg 600w, https://www.valdemarsro.dk/wp-content/2017/03/one-pot-pasta-opskrift-768x1075.jpg 768w"+ sizes="(max-width: 1000px) 100vw, 1000px" />+ </p>+ <div class="clear"></div>+ <h3><strong>Valdemarsro Kogebog med KAGER & DESSERTER</strong></h3>+ <p>Min nye kogebog Valdemarsro Kager & Desserter er fyldt med alle+ favoritopskrifterne til det søde køkken. –<em><a+ href="https://www.valdemarsro.dk/kogebog-valdemarsro-kager-desserter/"+ target="_blank" rel="noopener"> køb bogen her >></a></em></p>+ <p> </p>+ <div class="banner-horizontal-1">+ <div class="container">+ <div class="madplan-banner"><img src="/wp-content/2021/06/indkoebsliste.png"+ style="height:120px;width:auto;" width="500" height="500" />+ <div class="banner-text">+ </p>+ <h3>MADPLANER MED INDKØBSSEDDEL</h3>+ <p>FÅ EN LÆKKER MADPLAN MED INDKØBSSEDDEL FRA VALDEMARSRO HVER UGE OG+ TILPAS MADPLANEN PRÆCIS SÅ DEN PASSER DIG<br />+ </div>+ <div class="banner-link"><a href="/madplan/" id="banner_indkoeb"+ target="_blank" rel="noopener"+ onclick="return _promotion_click('banner_indkoeb', '');">Læs mere+ her >></a></div>+ </div>+ </div>+ </div>+ <script>document.addEventListener('DOMContentLoaded', (event) => { _promotion_view('banner_indkoeb', ''); });</script>++ </div>+ <div class="recipe-bar">+ <a href="https://www.valdemarsro.dk/aftensmad/">Aftensmad</a> <a+ href="https://www.valdemarsro.dk/baalmad/">Bålmad</a> <a+ href="https://www.valdemarsro.dk/familiefavoritter/">Familiefavoritter</a> <a+ href="https://www.valdemarsro.dk/nem-hverdagsmad/">Nem Hverdagsmad</a> <a+ href="https://www.valdemarsro.dk/opskrifter/">Opskrifter</a> <a+ href="https://www.valdemarsro.dk/hverdagsfavoritter-smaa-boern/">Opskrifter til børn+ - Hverdagsfavoritter børn</a> <a+ href="https://www.valdemarsro.dk/pasta/">Pasta</a><a+ href="https://www.valdemarsro.dk/tag/spaghetti/">spaghetti</a><a+ href="https://www.valdemarsro.dk/tag/hakkede-tomater/">Hakkede tomater</a><a+ href="https://www.valdemarsro.dk/tag/basilikum/">Basilikum</a><a+ href="https://www.valdemarsro.dk/tag/hvidloeg/">Hvidløg</a><a+ href="https://www.valdemarsro.dk/tag/tomat/">Tomat</a><a+ href="https://www.valdemarsro.dk/tag/squash/">Squash</a><a+ href="https://www.valdemarsro.dk/tag/oregano/">Oregano</a><a+ href="https://www.valdemarsro.dk/tag/chorizo/">Chorizo</a><a+ href="https://www.valdemarsro.dk/tag/bouillon/">Bouillon</a><a+ href="https://www.valdemarsro.dk/tag/chili/">Chili</a><a+ href="https://www.valdemarsro.dk/tag/parmesan/">Parmesan</a><a+ href="https://www.valdemarsro.dk/tag/ost/">Ost</a>+ </div>+ <div class="related">+ <div class="row clear-after">+ <div class="col span_12">+ <div class="row clear-after">+ <div class="nav-wrapper">+ <div class="col nav-prev">+ <div class="inner">+ <a href="https://www.valdemarsro.dk/smaa-glimt-106/">‹+ Forrige indlæg</a>+ </div>+ </div>+ <div class="col pull_right nav-next">+ <div class="inner">+ <a href="https://www.valdemarsro.dk/min-morgen-juice/">Næste+ indlæg ›</a>+ </div>+ </div>+ <div class="clear"></div>+ </div>+ </div>+ </div>+ <div id="adn-00000000000bae84" style="display:none;" class="vroad vroadmob"></div>+ <!--<div id="cncpt-mob3"></div>-->+ <!--<div data-spklw-widget="widget-5b8f9186a45c3"></div>-->+ <div class="widget_text col span_12">+ <div class="textwidget custom-html-widget">+ <a href="https://www.valdemarsro.dk/valdemarsro-premium/"+ id="commentwidget_1"+ onclick="return _promotion_click('commentwidget_1', '');"><img+ src="/wp-content/2020/12/1-prioritet-Banner_Premium.jpg" width="900"+ height="750" /></a>+ <script>+ document.addEventListener('DOMContentLoaded', (event) => {+ _promotion_view('commentwidget_1', '');+ </script>+++ <br /><br />+ </div>+ </div>+ </div>+ </div>+ <div id="comments">+ <div class="comments-title"><span class="svg"></span>254 kommentarer</div>+ <ul class="comments">+ <li class="comment even thread-even depth-1 parent" id="comment-97440">+ <div id="div-comment-97440" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Stine</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2017 kl. 09:23</div>+ <div class="comment-text" itemprop="text">+ <p>Stort tak herfra – det var hurtig ekspedition på min+ forespørgsel :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97440'+ data-commentid="97440" data-postid="30315"+ data-belowelement="div-comment-97440" data-respondelement="respond"+ data-replyto="Besvar Stine" aria-label='Besvar Stine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-2 parent" id="comment-215021">+ <div id="div-comment-215021" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Nina</strong>+ skrev:</div>+ <div class="comment-date">19. december 2021 kl. 21:15</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man bruge bacon i stedet for chorizo?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-215021'+ data-commentid="215021" data-postid="30315"+ data-belowelement="div-comment-215021"+ data-respondelement="respond" data-replyto="Besvar Nina"+ aria-label='Besvar Nina'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-3"+ id="comment-215063">+ <div id="div-comment-215063" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">20. december 2021 kl. 14:29</div>+ <div class="comment-text" itemprop="text">+ <p>Det giver en anden smag, og er helt op til dig. Begge+ dele kan fint fungere til retten.<br />+ Rigtig god fornøjelse<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-215063' data-commentid="215063"+ data-postid="30315"+ data-belowelement="div-comment-215063"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97457">+ <div id="div-comment-97457" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. marts 2017 kl. 11:17</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, ik´ ♡<br />+ 10 minutter + det løse, så var den klaret ;) – og jeg+ lover at der kommer flere skønne one pot pasta i løbet af+ foråret og sommeren<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97457'+ data-commentid="97457" data-postid="30315"+ data-belowelement="div-comment-97457"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-97441">+ <div id="div-comment-97441" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Birgitte</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2017 kl. 09:28</div>+ <div class="comment-text" itemprop="text">+ <p>Wow – det ser helt vildt lækkert ud, og pærenemt. Det skal+ prøves a.s.a.p.;-) Og super fin video.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97441'+ data-commentid="97441" data-postid="30315"+ data-belowelement="div-comment-97441" data-respondelement="respond"+ data-replyto="Besvar Birgitte" aria-label='Besvar Birgitte'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97458">+ <div id="div-comment-97458" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. marts 2017 kl. 11:18</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak og rigtig god fornøjelse med den skønne ret :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97458'+ data-commentid="97458" data-postid="30315"+ data-belowelement="div-comment-97458"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-97442">+ <div id="div-comment-97442" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Ann</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2017 kl. 09:37</div>+ <div class="comment-text" itemprop="text">+ <p>Lækkert! Jeg glæder mig til at prøve at lave det selv :)</p>+ <p>Din video er super fin. Hvor er det rivejern til parmesanosten fra?+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97442'+ data-commentid="97442" data-postid="30315"+ data-belowelement="div-comment-97442" data-respondelement="respond"+ data-replyto="Besvar Ann" aria-label='Besvar Ann'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97459">+ <div id="div-comment-97459" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. marts 2017 kl. 11:18</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak, det er dejligt at høre!<br />+ Og rigtig god fornøjelse med retten :) Rivejernet er af+ ældre dato og er fra Microplane</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97459'+ data-commentid="97459" data-postid="30315"+ data-belowelement="div-comment-97459"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-97463">+ <div id="div-comment-97463" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Christina</strong>+ skrev:</div>+ <div class="comment-date">7. marts 2017 kl. 12:27</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor ser det nemt og lækkert ud til de dage, hvor man ikke har tid+ til at stå i køkkenet i lang tid. Det skal helt sikkert prøves!+ Videoen er også rigtig fin – det er de nu alle sammen, og jeg+ synes virkelig, det er dejligt at bloggen har fået dette nye+ element.<br />+ Måske har jeg skrevet det før, men hvor er det også fantastisk+ inspirerende og dejligt at se, at hvad der startede som en hobby nu+ er et fuldtidsjob til to personer – virkelig godt gået. Måske+ du en dag kan skrive lidt om jeres arbejdsdag, opgavefordeling,+ fremtidsplaner osv. Ha en dejlig dag!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97463'+ data-commentid="97463" data-postid="30315"+ data-belowelement="div-comment-97463" data-respondelement="respond"+ data-replyto="Besvar Christina"+ aria-label='Besvar Christina'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97524">+ <div id="div-comment-97524" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 09:27</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak for din søde hilsen, Christina!<br />+ Jeg vil gerne skrive lidt på et indlæg om vores nye+ arbejdsdag, hvordan vi fordeler opgaverne osv. Det går jeg i+ gang med så småt og glæder mig til at dele :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97524'+ data-commentid="97524" data-postid="30315"+ data-belowelement="div-comment-97524"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-97472">+ <div id="div-comment-97472" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Laura</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2017 kl. 16:47</div>+ <div class="comment-text" itemprop="text">+ <p>Wow, det ser lækkert ud! Og dejligt nemt for en studerende, hvor+ tiden nogle gange er knap! Kan opskriften mon halveres, når nu jeg+ bare er mig selv tror du? Jeg glæder mig til flere af den her slags+ opskrifter!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97472'+ data-commentid="97472" data-postid="30315"+ data-belowelement="div-comment-97472" data-respondelement="respond"+ data-replyto="Besvar Laura" aria-label='Besvar Laura'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97529">+ <div id="div-comment-97529" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 09:32</div>+ <div class="comment-text" itemprop="text">+ <p>Du kan sagtens halvere den og tilpasse den til en+ person.<br />+ Jeg skal gerne lave flere af disse nemme hurtige retter :)+ – tjek også gerne <a+ href="http://www.valdemarsro.dk/nem-hverdagsmad/"+ target="_blank" rel="noopener">denne side, hvor jeg har+ listet alle mine hurtige nemme hverdagsretter</a><br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97529'+ data-commentid="97529" data-postid="30315"+ data-belowelement="div-comment-97529"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-97474">+ <div id="div-comment-97474" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sarah</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2017 kl. 17:03</div>+ <div class="comment-text" itemprop="text">+ <p>Du er simpelthen redningen for alle børnefamilier (som os) der+ trænger til inspiration til den daglige aftensmad! Tak for det ♥</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97474'+ data-commentid="97474" data-postid="30315"+ data-belowelement="div-comment-97474" data-respondelement="respond"+ data-replyto="Besvar Sarah" aria-label='Besvar Sarah'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97530">+ <div id="div-comment-97530" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 09:33</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor dejligt! Tusind tak for den søde hilsen ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97530'+ data-commentid="97530" data-postid="30315"+ data-belowelement="div-comment-97530"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-97489">+ <div id="div-comment-97489" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Katrine</strong> skrev:+ </div>+ <div class="comment-date">8. marts 2017 kl. 08:08</div>+ <div class="comment-text" itemprop="text">+ <p>Uh hvor lækkert!! Og super fin video :) 2 spørgsmål:<br />+ 1. Det er et lidt dumt spørgsmål, men til 5 dl grøntsagsboullion+ tager du så bare én terning til de 5 dl??<br />+ 2. Hvor er de flotte blå tallerkener fra??<br />+ Tusind tak for en skøn blog!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97489'+ data-commentid="97489" data-postid="30315"+ data-belowelement="div-comment-97489" data-respondelement="respond"+ data-replyto="Besvar Katrine" aria-label='Besvar Katrine'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2 parent"+ id="comment-97533">+ <div id="div-comment-97533" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 09:46</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak :)<br />+ Jeg bruger boullion i et bæger fra Herbamare og der bruger+ jeg en lidt gavmild tsk fuld som jeg blander med 5 dl vand.+ Det passer meget godt og behøver ikke være en stærk færdig+ grøntsagsboullion man får lavet.<br />+ De blå tallerkener er fra Bloomingville. ♡<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97533'+ data-commentid="97533" data-postid="30315"+ data-belowelement="div-comment-97533"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment even depth-3" id="comment-97534">+ <div id="div-comment-97534" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong+ itemprop="name">Katrine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 09:49</div>+ <div class="comment-text" itemprop="text">+ <p>Ah okay, hvor smart :)<br />+ Tusind tak for alle svarene!<br />+ Kh Katrine</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-97534' data-commentid="97534"+ data-postid="30315"+ data-belowelement="div-comment-97534"+ data-respondelement="respond"+ data-replyto="Besvar Katrine"+ aria-label='Besvar Katrine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt depth-2 parent" id="comment-97504">+ <div id="div-comment-97504" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Julie</strong>+ skrev:</div>+ <div class="comment-date">8. marts 2017 kl. 16:50</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg vil også gerne have svar på det med bouillonen. Desuden+ hvilken en vil du anbefale?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97504'+ data-commentid="97504" data-postid="30315"+ data-belowelement="div-comment-97504"+ data-respondelement="respond" data-replyto="Besvar Julie"+ aria-label='Besvar Julie'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-3"+ id="comment-97541">+ <div id="div-comment-97541" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 10:08</div>+ <div class="comment-text" itemprop="text">+ <p>Den økologiske fra herbamara er min favorit og den vi+ altid bruger :)</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-97541' data-commentid="97541"+ data-postid="30315"+ data-belowelement="div-comment-97541"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97507">+ <div id="div-comment-97507" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lisbeth</strong> skrev:+ </div>+ <div class="comment-date">8. marts 2017 kl. 19:34</div>+ <div class="comment-text" itemprop="text">+ <p>Endnu engang en fantastisk ret. Det er altid inspirerende her på din+ blog. Jeg leder aldrig forgæves efter ideer herinde.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97507'+ data-commentid="97507" data-postid="30315"+ data-belowelement="div-comment-97507" data-respondelement="respond"+ data-replyto="Besvar Lisbeth" aria-label='Besvar Lisbeth'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97542">+ <div id="div-comment-97542" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 10:08</div>+ <div class="comment-text" itemprop="text">+ <p>Det er så dejligt at høre ♡ Tak!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97542'+ data-commentid="97542" data-postid="30315"+ data-belowelement="div-comment-97542"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97520">+ <div id="div-comment-97520" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name"><a+ href='http://www.gaardejerindensunivers.blogspot.dk'+ rel='external nofollow ugc'+ class='url'>Gaardejerinden</a></strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 08:52</div>+ <div class="comment-text" itemprop="text">+ <p>Det lyder super lækkert – det er da bestemt en ret der skal+ afprøves herhjemme :0)<br />+ Tak for dejlige billeder – og god inspiration..som altid ;0)+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97520'+ data-commentid="97520" data-postid="30315"+ data-belowelement="div-comment-97520" data-respondelement="respond"+ data-replyto="Besvar Gaardejerinden"+ aria-label='Besvar Gaardejerinden'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97544">+ <div id="div-comment-97544" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 10:09</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak, det er dejligt at høre ♡ -og rigtig god+ fornøjelse med at prøve den af :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97544'+ data-commentid="97544" data-postid="30315"+ data-belowelement="div-comment-97544"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97560">+ <div id="div-comment-97560" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name"><a+ href='http://FiftyFabulous.dk' rel='external nofollow ugc'+ class='url'>Pia Trans</a></strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 12:29</div>+ <div class="comment-text" itemprop="text">+ <p>Det skal prøves. Det er jo GENIALT! Glæder mig allerede :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97560'+ data-commentid="97560" data-postid="30315"+ data-belowelement="div-comment-97560" data-respondelement="respond"+ data-replyto="Besvar Pia Trans"+ aria-label='Besvar Pia Trans'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment even depth-2 parent" id="comment-216140">+ <div id="div-comment-216140" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sif</strong>+ skrev:</div>+ <div class="comment-date">8. januar 2022 kl. 22:09</div>+ <div class="comment-text" itemprop="text">+ <p>Hejsa.</p>+ <p>Må jeg spørge hvordan du regner næringsindholdet ud? Jeg kan+ simpelthen ikke få det til at passe at der er mindre end+ 350kcal pr person, når 100g spaghetti indeholder mere end+ 350kcal?<br />+ Tak for nogle lækre opskrifter og god inspiration til+ hverdagen :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-216140'+ data-commentid="216140" data-postid="30315"+ data-belowelement="div-comment-216140"+ data-respondelement="respond" data-replyto="Besvar Sif"+ aria-label='Besvar Sif'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-3"+ id="comment-216168">+ <div id="div-comment-216168" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. januar 2022 kl. 07:51</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Sif,<br />+ Mange tak for din søde hilsen.<br />+ Jeg kan godt se den regner forkert her, så jeg+ tjekker den lige igennem og retter til :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-216168' data-commentid="216168"+ data-postid="30315"+ data-belowelement="div-comment-216168"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97569">+ <div id="div-comment-97569" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 18:59</div>+ <div class="comment-text" itemprop="text">+ <p>Rigtig god fornøjelse – det er nemlig bare så lækkert+ :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97569'+ data-commentid="97569" data-postid="30315"+ data-belowelement="div-comment-97569"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97581">+ <div id="div-comment-97581" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anne-Mette</strong>+ skrev:</div>+ <div class="comment-date">9. marts 2017 kl. 21:35</div>+ <div class="comment-text" itemprop="text">+ <p>Det ser super lækkert og ikke mindst nemt og hurtigt ud. Jeg vil+ glæde mig til flere af den slags opskrifter :-). Hvor køber du+ chorizoen henne?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97581'+ data-commentid="97581" data-postid="30315"+ data-belowelement="div-comment-97581" data-respondelement="respond"+ data-replyto="Besvar Anne-Mette"+ aria-label='Besvar Anne-Mette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment even depth-2 parent" id="comment-180240">+ <div id="div-comment-180240" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Helle</strong>+ skrev:</div>+ <div class="comment-date">25. april 2020 kl. 14:09</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man bruge tørt basilikum, hvis man ikke har noget friskt?+ Og hvor meget?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-180240'+ data-commentid="180240" data-postid="30315"+ data-belowelement="div-comment-180240"+ data-respondelement="respond" data-replyto="Besvar Helle"+ aria-label='Besvar Helle'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-3"+ id="comment-180301">+ <div id="div-comment-180301" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">26. april 2020 kl. 07:00</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, sagtens :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-180301' data-commentid="180301"+ data-postid="30315"+ data-belowelement="div-comment-180301"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2 parent"+ id="comment-97673">+ <div id="div-comment-97673" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 16:14</div>+ <div class="comment-text" itemprop="text">+ <p>Det skal jeg gerne finde på nogle flere af.<br />+ Jeg køber den økologiske chorizo fra Aalbæk, den er rigtig+ god.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97673'+ data-commentid="97673" data-postid="30315"+ data-belowelement="div-comment-97673"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-3 parent" id="comment-174411">+ <div id="div-comment-174411" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong+ itemprop="name">Janni</strong> skrev:</div>+ <div class="comment-date">27. februar 2020 kl. 13:32</div>+ <div class="comment-text" itemprop="text">+ <p>Bruger du frisk eller tørret chorizo..<br />+ Jeg har måske købt en forkert, den hedder Chorizo+ salami og er røget, mærket er Dulano selection..</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-174411' data-commentid="174411"+ data-postid="30315"+ data-belowelement="div-comment-174411"+ data-respondelement="respond"+ data-replyto="Besvar Janni"+ aria-label='Besvar Janni'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-4"+ id="comment-174480">+ <div id="div-comment-174480" class="comment-body"+ itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong>+ skrev:</div>+ <div class="comment-date">28. februar 2020 kl. 17:00+ </div>+ <div class="comment-text" itemprop="text">+ <p>Min favorit er den økologiske fra Aalbæk, som+ er i et helt stykke jeg skærer fra.<br />+ Jeg kender ikke den du har købt, men mon+ ikke det også går fint med den?<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-174480'+ data-commentid="174480" data-postid="30315"+ data-belowelement="div-comment-174480"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a>+ </div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97639">+ <div id="div-comment-97639" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Henriette</strong>+ skrev:</div>+ <div class="comment-date">10. marts 2017 kl. 18:48</div>+ <div class="comment-text" itemprop="text">+ <p>Hold nu da op hvor er den skøøøøøøøn- og naturligvis super super nem+ at gå til som det også fremgår så fint????????. Jeg blev lige+ usikker på med eller uden låg?? Jeg startede uden, men syntes den så+ for tør ud, så puttede 1 dl vand mere i og låg halvt på. Den blev+ uuuuuuunderdkøn- og nu ligger jeg udsplattet for er ikke så vant til+ SÅ meget stivelse. Men mums mums- og puttede forresten en hel squatz+ i- det kan den sagtens bære.<br />+ Bøjer mig i støvet- skøn opskrift- tusind tak.</p>+ <p>Og PS så har jeg en lille kommentar til dine video- sagt i den+ allerbedste mening- jrg knuuus elsker alt ved denne blog, også at+ alt det gode- nærmest perfekte bliver fremstillet så fint, og så ved+ vi alle at der også er mere i livet end det. Jeg håber sån at du+ holder det i videoerne også- at det er ok ( nærmest rart-+ genkendeligt) at der er lidt upser i sproget, og blusen blir lidt+ beskidt- at der ikke altid er underskønne blomster i baggrunden etc.+ Blot et lille input af mine tanker ????- med tak for vidunderlig+ blog</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97639'+ data-commentid="97639" data-postid="30315"+ data-belowelement="div-comment-97639" data-respondelement="respond"+ data-replyto="Besvar Henriette"+ aria-label='Besvar Henriette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97687">+ <div id="div-comment-97687" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 16:33</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Henriette,<br />+ Den skal tilberedes med låg, så væsken ikke fordamper+ :)<br />+ Dejligt at høre at du synes godt om den!<br />+ Tak for din søde hilsen om min blog og videoer ♡<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97687'+ data-commentid="97687" data-postid="30315"+ data-belowelement="div-comment-97687"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97647">+ <div id="div-comment-97647" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sarah Korsgaard</strong>+ skrev:</div>+ <div class="comment-date">10. marts 2017 kl. 22:35</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine. Det lyder virkelig som en lækker og nem opskrift..+ Tror du man kan bruge andet pasta end spaghetti? Jeg har en mand der+ ikke er så glad for de lange, bøvlede spaghettier. Haha ;-)<br />+ Tak for alle dine lækre opskrifter.. er næsten dagligt inde og+ tjekke om der er kommet noget nyt! I gør virkelig et godt stykke+ arbejde!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97647'+ data-commentid="97647" data-postid="30315"+ data-belowelement="div-comment-97647" data-respondelement="respond"+ data-replyto="Besvar Sarah Korsgaard"+ aria-label='Besvar Sarah Korsgaard'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97690">+ <div id="div-comment-97690" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 16:36</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, du kan sagtens bruge lige den pasta du foretrækker+ – bare afstem tilberedningstiden efter pastaen.<br />+ Frisk pasta og lignende med meget kort kogetid vil dog ikke+ være et hit, da det skal koges i for kort tid til denne+ opskrift :)<br />+ Tusind tak for din søde hilsen, det er vi godt nok glade for+ at du synes – og læser med ♡<br />+ Rigtig god weekend<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97690'+ data-commentid="97690" data-postid="30315"+ data-belowelement="div-comment-97690"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97664">+ <div id="div-comment-97664" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Trine Risbo+ Jessen</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 13:37</div>+ <div class="comment-text" itemprop="text">+ <p>Genialt! Ultranemt, og hele familien elskede det – også to små+ børn, der normalt hverken gider sovs eller tilberedte+ grøntsager….<br />+ Hvis du finder på flere one pot-opskrifter, er jeg meget+ interesseret….</p>+ <p>kh Trine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97664'+ data-commentid="97664" data-postid="30315"+ data-belowelement="div-comment-97664" data-respondelement="respond"+ data-replyto="Besvar Trine Risbo Jessen"+ aria-label='Besvar Trine Risbo Jessen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97691">+ <div id="div-comment-97691" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 16:38</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg er fluks gået i testmode ;) – så der kommer helt+ sikkert flere skønne af slagsen<br />+ Så dejligt at de hitter hjemme hos jer. Mine børn er også+ absolut bedst til pastasauce, når det bliver serveret hvor+ det er vendt i pastaen – så spiser de det hellere end+ gerne!<br />+ Rigtig god weekend<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97691'+ data-commentid="97691" data-postid="30315"+ data-belowelement="div-comment-97691"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97693">+ <div id="div-comment-97693" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Malene</strong> skrev:+ </div>+ <div class="comment-date">11. marts 2017 kl. 18:41</div>+ <div class="comment-text" itemprop="text">+ <p>Hej<br />+ Vi har nu prøvet en del af dine retter, og har stadig ikke fundet+ noget som ikke smagte godt. Alle de retter vi har prøvet , incl+ denne lækre pasta ret, har smagt helt fantastisk. Vi laver madplan+ hver weekend, og der går ikke en uge uden, at flere af dine retter+ er på menuen.<br />+ Så tusinde tak for dejlig mad og inspiration til noget nyt og+ lækkert.<br />+ Glæder os fortsat til, at følge med på din side.<br />+ Kærlig hilsen<br />+ Malene</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97693'+ data-commentid="97693" data-postid="30315"+ data-belowelement="div-comment-97693" data-respondelement="respond"+ data-replyto="Besvar Malene" aria-label='Besvar Malene'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97702">+ <div id="div-comment-97702" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 20:51</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre! Synes det er så hyggeligt at+ mine retter er med på jeres madplan :)<br />+ Tusind tak for din søde hilsen, det varmer<br />+ Rigtig god weekend til jer<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97702'+ data-commentid="97702" data-postid="30315"+ data-belowelement="div-comment-97702"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97695">+ <div id="div-comment-97695" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Clara</strong> skrev:+ </div>+ <div class="comment-date">11. marts 2017 kl. 19:22</div>+ <div class="comment-text" itemprop="text">+ <p>Helt fantastisk ret! Også til en studerende, tusind tak!<br />+ Hvad ville et godt vegetar-alternativ til chorizoen være? :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97695'+ data-commentid="97695" data-postid="30315"+ data-belowelement="div-comment-97695" data-respondelement="respond"+ data-replyto="Besvar Clara" aria-label='Besvar Clara'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97704">+ <div id="div-comment-97704" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 20:55</div>+ <div class="comment-text" itemprop="text">+ <p>Du kan fint bare undlade chorizo. Jeg kommer det primært i+ pga den lidt krydrede smag – men det er også dejligt+ uden.<br />+ Evt kan du supplere op med lidt røget paprika, ellers bare+ lav retten uden chorizo :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97704'+ data-commentid="97704" data-postid="30315"+ data-belowelement="div-comment-97704"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97699">+ <div id="div-comment-97699" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Christina</strong>+ skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 19:56</div>+ <div class="comment-text" itemprop="text">+ <p>Hold nu op, hvor var det lækkert! Og så nemt, det er næsten for godt+ til at være sandt?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97699'+ data-commentid="97699" data-postid="30315"+ data-belowelement="div-comment-97699" data-respondelement="respond"+ data-replyto="Besvar Christina"+ aria-label='Besvar Christina'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97707">+ <div id="div-comment-97707" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. marts 2017 kl. 21:06</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, det er virkelig næsten for godt til at være sandt ;) At+ det både kan være så nemt og blive så lækkert!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97707'+ data-commentid="97707" data-postid="30315"+ data-belowelement="div-comment-97707"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97754">+ <div id="div-comment-97754" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">kristina</strong> skrev:+ </div>+ <div class="comment-date">12. marts 2017 kl. 21:27</div>+ <div class="comment-text" itemprop="text">+ <p>Spiser ingen pasta selv, men denne skulle bare prøves. Hold op hvor+ smagt det godt, og det tog intet tid at lave. Tusind tak for din+ blog. Man finder altid en god inspiration til madlavning. :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97754'+ data-commentid="97754" data-postid="30315"+ data-belowelement="div-comment-97754" data-respondelement="respond"+ data-replyto="Besvar kristina" aria-label='Besvar kristina'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97773">+ <div id="div-comment-97773" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. marts 2017 kl. 11:23</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det skønt at høre! :)<br />+ Tak for din søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97773'+ data-commentid="97773" data-postid="30315"+ data-belowelement="div-comment-97773"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-97771">+ <div id="div-comment-97771" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mette</strong> skrev:+ </div>+ <div class="comment-date">13. marts 2017 kl. 10:51</div>+ <div class="comment-text" itemprop="text">+ <p>Må man spørge hvilken chorizo pølse du plejer at anvende? Synes+ nemlig vi har lidt besvær med at finde en rigtig god en :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97771'+ data-commentid="97771" data-postid="30315"+ data-belowelement="div-comment-97771" data-respondelement="respond"+ data-replyto="Besvar Mette" aria-label='Besvar Mette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-97776">+ <div id="div-comment-97776" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. marts 2017 kl. 11:29</div>+ <div class="comment-text" itemprop="text">+ <p>Vi køber altid den fra Aalbæk – den økologiske chorizo+ med jalapeno. Den er lidt spicy, men smager skønt på+ hjemmelavede pizza, i sandwich og i denne one pot pasta :)+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97776'+ data-commentid="97776" data-postid="30315"+ data-belowelement="div-comment-97776"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-97778">+ <div id="div-comment-97778" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mette</strong> skrev:+ </div>+ <div class="comment-date">13. marts 2017 kl. 13:49</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg skal prøve at lave denne i aften. Har været i Fakta, Netto og+ Meny. Men ingen havde Chorizo pølse. Så har købt det i skiver nu.+ Øv… hvor får jeg mon det som pølse?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97778'+ data-commentid="97778" data-postid="30315"+ data-belowelement="div-comment-97778" data-respondelement="respond"+ data-replyto="Besvar Mette" aria-label='Besvar Mette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2 parent"+ id="comment-97785">+ <div id="div-comment-97785" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. marts 2017 kl. 15:26</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg køber det i SuperBrugsen – men har også set denne+ jeg bruger, som er fra Aalbæk i Netto.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97785'+ data-commentid="97785" data-postid="30315"+ data-belowelement="div-comment-97785"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-3" id="comment-98068">+ <div id="div-comment-98068" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong+ itemprop="name">Britt</strong> skrev:</div>+ <div class="comment-date">18. marts 2017 kl. 18:24</div>+ <div class="comment-text" itemprop="text">+ <p>Man kan også købe den i Kvickly</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-98068' data-commentid="98068"+ data-postid="30315"+ data-belowelement="div-comment-98068"+ data-respondelement="respond"+ data-replyto="Besvar Britt"+ aria-label='Besvar Britt'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-97806">+ <div id="div-comment-97806" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Heidi</strong> skrev:+ </div>+ <div class="comment-date">14. marts 2017 kl. 10:15</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har lavet denne ret to gange siden den kom på bloggen. Den er+ bare så nem og lækker. Min kæreste (som er uddannet kok) synes at+ sovsen smager som havde den stået og simret i flere timer :-) Tak+ for den.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97806'+ data-commentid="97806" data-postid="30315"+ data-belowelement="div-comment-97806" data-respondelement="respond"+ data-replyto="Besvar Heidi" aria-label='Besvar Heidi'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97934">+ <div id="div-comment-97934" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">16. marts 2017 kl. 10:29</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre<br />+ – jeg er også selv dybt imponeret over dybden i smagen+ – den smager jo nemlig helt langtidssimret.<br />+ Tak for den søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97934'+ data-commentid="97934" data-postid="30315"+ data-belowelement="div-comment-97934"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-97818">+ <div id="div-comment-97818" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Latifa</strong> skrev:+ </div>+ <div class="comment-date">14. marts 2017 kl. 13:37</div>+ <div class="comment-text" itemprop="text">+ <p>Hej. Kan man bruge kylling? Hvis ja hvordan… fed blog i øvrigt,+ har lavet mange af dine lækre retter.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97818'+ data-commentid="97818" data-postid="30315"+ data-belowelement="div-comment-97818" data-respondelement="respond"+ data-replyto="Besvar Latifa" aria-label='Besvar Latifa'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97941">+ <div id="div-comment-97941" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">16. marts 2017 kl. 10:54</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, det kan du sagtens. Skær det i små tern og brun det+ hurtigt af i gryden i lidt olie, inden du kommer resten af+ ingredienserne i.<br />+ Tak for din søde hilsen, det er dejligt at høre<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97941'+ data-commentid="97941" data-postid="30315"+ data-belowelement="div-comment-97941"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-97942">+ <div id="div-comment-97942" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Tine</strong> skrev:+ </div>+ <div class="comment-date">16. marts 2017 kl. 11:02</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for en supernem opskrift, der smager fantastisk!<br />+ Jeg brugte dog fuldkornsspaghetti og det var nok en fejl, for retten+ skulle desværre koge i hele 20 minutter før spaghettien var+ spiselig. Normalt er kogetiden kun 8 minutter på den spaghetti, så+ jeg forstår det ikke helt… Men til sidst fik vi da mad og det+ smagte rigtig dejligt!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97942'+ data-commentid="97942" data-postid="30315"+ data-belowelement="div-comment-97942" data-respondelement="respond"+ data-replyto="Besvar Tine" aria-label='Besvar Tine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-97970">+ <div id="div-comment-97970" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">16. marts 2017 kl. 12:15</div>+ <div class="comment-text" itemprop="text">+ <p>Dejligt at høre – og lidt mystisk med pastaen, faktisk+ …<br />+ Måske der skal en smule mere vand i når det er fuldkorn, men+ ellers har jeg ikke selv oplevet et behov for længere+ kogetid.<br />+ Uanset, så er det skønt at høre at det var lækkert :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-97970'+ data-commentid="97970" data-postid="30315"+ data-belowelement="div-comment-97970"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-98351">+ <div id="div-comment-98351" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Stine</strong> skrev:+ </div>+ <div class="comment-date">25. marts 2017 kl. 18:29</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg prøvede denne opskrift i torsdag – jeg er fan! Nemt og+ virkelig godt! Jeg havde lige en rest bacon, som jeg tilføjede, og+ det gjorde bestemt intet :)<br />+ Jeg er jævnelig bruger af dine opskrifter, da jeg synes det altid er+ et stort hit! Jeg er også gået hen og blevet glad for dine mad+ videoer. Jeg har dog et spørgsmål, når du lavet brød på dine videoer+ bruger du ikke rørmaskine, er det fordi den larmer for meget, eller+ bager du helst uden? Jeg bager nemlig helst selv på rørmaskine, da+ jeg synes det er lettest og bedste måde at få æltet dejen godt+ igennem :)<br />+ Jeg ønsker mig en video med dine ostebrød ?<br />+ Tak for en dejlig blog, og god weekend?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98351'+ data-commentid="98351" data-postid="30315"+ data-belowelement="div-comment-98351" data-respondelement="respond"+ data-replyto="Besvar Stine" aria-label='Besvar Stine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98438">+ <div id="div-comment-98438" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. marts 2017 kl. 21:48</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Stine,<br />+ Tusind tak for din søde hilsen – og fine spørgsmål mht+ røremaskinen! :)<br />+ I videoerne kan jeg godt lide at gøre det så enkelt som+ muligt, så hvis man kan ælte i hånden, så gør jeg det oftest+ på videoerne, for at vise at man kan fint få glæde af+ opskriften uden en røremaskine – men derfor kan alle+ brød opskrifterne nu fint æltes i maskinen også.<br />+ Når jeg ikke laver film, så er det cirka 50/50 hvad jeg gør+ – for jeg kan faktisk meget godt lide at ælte dejen+ med hænderne også. Men man skal endelig blot gøre hvad man+ synes er lettest og fungere godt.<br />+ Ostebrødene har jeg også på min liste – en SKØN+ “undskyldning” for at bage dem igen snart+ ;)<br />+ Dejlig aften til dig<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98438'+ data-commentid="98438" data-postid="30315"+ data-belowelement="div-comment-98438"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-98352">+ <div id="div-comment-98352" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anne Krogh</strong>+ skrev:</div>+ <div class="comment-date">25. marts 2017 kl. 19:14</div>+ <div class="comment-text" itemprop="text">+ <p>Kæresten og jeg har lige lavet One post pasta og det smagte super+ godt :) helt sikkert noget vi kommer til at lave mange gange da det+ er den nemmeste ret</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98352'+ data-commentid="98352" data-postid="30315"+ data-belowelement="div-comment-98352" data-respondelement="respond"+ data-replyto="Besvar Anne Krogh"+ aria-label='Besvar Anne Krogh'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98439">+ <div id="div-comment-98439" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. marts 2017 kl. 21:49</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre! Tak for din søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98439'+ data-commentid="98439" data-postid="30315"+ data-belowelement="div-comment-98439"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-98707">+ <div id="div-comment-98707" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Andreas</strong> skrev:+ </div>+ <div class="comment-date">3. april 2017 kl. 11:25</div>+ <div class="comment-text" itemprop="text">+ <p>Det er jo en helt sindssygt lækker ret! tusind tak :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98707'+ data-commentid="98707" data-postid="30315"+ data-belowelement="div-comment-98707" data-respondelement="respond"+ data-replyto="Besvar Andreas" aria-label='Besvar Andreas'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98721">+ <div id="div-comment-98721" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. april 2017 kl. 19:27</div>+ <div class="comment-text" itemprop="text">+ <p>SÅ dejligt at høre du også synes det :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98721'+ data-commentid="98721" data-postid="30315"+ data-belowelement="div-comment-98721"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-98730">+ <div id="div-comment-98730" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Louise</strong> skrev:+ </div>+ <div class="comment-date">3. april 2017 kl. 19:56</div>+ <div class="comment-text" itemprop="text">+ <p>Hej. Tak for en skøn blog som jeg bruger ofte :-) Vi har ikke længere+ hvid pasta i huset. Ville det være ok at koge lidt længere og så+ bruge fuldkornsspaghetti?<br />+ Mvh Louise</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98730'+ data-commentid="98730" data-postid="30315"+ data-belowelement="div-comment-98730" data-respondelement="respond"+ data-replyto="Besvar Louise" aria-label='Besvar Louise'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98731">+ <div id="div-comment-98731" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. april 2017 kl. 19:59</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, det kan du sagtens. Kogetiden justeres bare efter+ varianten og måske skal du bruge 1 – 1 1/2 dl ekstra+ vand/boullion.<br />+ God fornøjelse med den og tak for den søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98731'+ data-commentid="98731" data-postid="30315"+ data-belowelement="div-comment-98731"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-98754">+ <div id="div-comment-98754" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lotte</strong> skrev:+ </div>+ <div class="comment-date">4. april 2017 kl. 10:34</div>+ <div class="comment-text" itemprop="text">+ <p>Så er den ret prøvet og vi er fans herhjemme. Den eneste ændring jeg+ lavede var at erstatte squashen (fordi de ikke have det butikken)+ med noget gulreodssalat jeg havde til at stå i køleskabet. Så one+ pot pasta blev også til stop Madspild….win win. :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98754'+ data-commentid="98754" data-postid="30315"+ data-belowelement="div-comment-98754" data-respondelement="respond"+ data-replyto="Besvar Lotte" aria-label='Besvar Lotte'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98768">+ <div id="div-comment-98768" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. april 2017 kl. 15:12</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor godt! Det lyder dejligt ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98768'+ data-commentid="98768" data-postid="30315"+ data-belowelement="div-comment-98768"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-98759">+ <div id="div-comment-98759" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Marianne</strong> skrev:+ </div>+ <div class="comment-date">4. april 2017 kl. 11:37</div>+ <div class="comment-text" itemprop="text">+ <p>Er det et must at pastaen skal koges sammen med de andre ting? Hvis+ man gerne vil have til 2 dage, tænker jeg det er bedst at dele det+ op, så man ikke skal stå og fiske alt pasta op for at gemme+ eventuelle rester af sovsen</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98759'+ data-commentid="98759" data-postid="30315"+ data-belowelement="div-comment-98759" data-respondelement="respond"+ data-replyto="Besvar Marianne" aria-label='Besvar Marianne'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98771">+ <div id="div-comment-98771" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. april 2017 kl. 15:14</div>+ <div class="comment-text" itemprop="text">+ <p>Det er ihvertfald dét som gør retten til noget ekstra+ særligt, da pastaen tager smag fra saucen. Men du kan+ sagtens lade dig inspirere af opskriften og lave det som en+ lækker pasta med tomatsauce i stedet :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98771'+ data-commentid="98771" data-postid="30315"+ data-belowelement="div-comment-98771"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-98780">+ <div id="div-comment-98780" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Christina</strong>+ skrev:</div>+ <div class="comment-date">4. april 2017 kl. 18:14</div>+ <div class="comment-text" itemprop="text">+ <p>Ville bare tilføje at denne ret næsten er blevet et ugentligt indslag+ hjemme hos os?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98780'+ data-commentid="98780" data-postid="30315"+ data-belowelement="div-comment-98780" data-respondelement="respond"+ data-replyto="Besvar Christina"+ aria-label='Besvar Christina'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-98786">+ <div id="div-comment-98786" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. april 2017 kl. 20:54</div>+ <div class="comment-text" itemprop="text">+ <p>Ej, hvor dejligt! Det er jeg glad for at høre :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-98786'+ data-commentid="98786" data-postid="30315"+ data-belowelement="div-comment-98786"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-99368">+ <div id="div-comment-99368" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Michelle</strong> skrev:+ </div>+ <div class="comment-date">19. april 2017 kl. 13:48</div>+ <div class="comment-text" itemprop="text">+ <p>Hej :)<br />+ Skal det være en støbejernsgryde eller kan retten laves i almindelig+ gryde? </p>+ <p>Vh Michelle.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99368'+ data-commentid="99368" data-postid="30315"+ data-belowelement="div-comment-99368" data-respondelement="respond"+ data-replyto="Besvar Michelle" aria-label='Besvar Michelle'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-99369">+ <div id="div-comment-99369" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. april 2017 kl. 14:03</div>+ <div class="comment-text" itemprop="text">+ <p>Den kan sagtens laves i en almindelig gryde også :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99369'+ data-commentid="99369" data-postid="30315"+ data-belowelement="div-comment-99369"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-99377">+ <div id="div-comment-99377" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sarah</strong> skrev:+ </div>+ <div class="comment-date">19. april 2017 kl. 19:02</div>+ <div class="comment-text" itemprop="text">+ <p>Det smagte så godt! Men det brændte til gengæld virkelig meget på i+ bunden :////, så nu må vores stakkels gryde stå i blød.<br />+ Måske skal den kun stå på 10 og ikke på 12?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99377'+ data-commentid="99377" data-postid="30315"+ data-belowelement="div-comment-99377" data-respondelement="respond"+ data-replyto="Besvar Sarah" aria-label='Besvar Sarah'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-99380">+ <div id="div-comment-99380" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. april 2017 kl. 19:49</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har ikke selv prøvet at det brænder på når jeg laver+ det.<br />+ Det skal ikke bulderkoge, men blot simrekoge – lyder+ som om din skal stå på 8, 9 eller 10, når der er låg+ på<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99380'+ data-commentid="99380" data-postid="30315"+ data-belowelement="div-comment-99380"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-99439">+ <div id="div-comment-99439" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sandra</strong> skrev:+ </div>+ <div class="comment-date">21. april 2017 kl. 20:42</div>+ <div class="comment-text" itemprop="text">+ <p>Mums, det var lækkert! Brugte dog noget mere chorizo og det gjorde+ dog ikke retten ringere!<br />+ Børnene var også vilde med det og så nemt! Er helt vild med mange af+ dine opskrifter, der bliver kigget meget efter inspiration til+ dagligdagen!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99439'+ data-commentid="99439" data-postid="30315"+ data-belowelement="div-comment-99439" data-respondelement="respond"+ data-replyto="Besvar Sandra" aria-label='Besvar Sandra'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-99778">+ <div id="div-comment-99778" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">25. april 2017 kl. 16:03</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det bare dejligt at høre ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99778'+ data-commentid="99778" data-postid="30315"+ data-belowelement="div-comment-99778"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-99590">+ <div id="div-comment-99590" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Stina</strong> skrev:+ </div>+ <div class="comment-date">22. april 2017 kl. 19:43</div>+ <div class="comment-text" itemprop="text">+ <p>Meget nemt og virkelig lækkert – tre børn som skovlede ind ?+ Vender helt sikkert tilbage efter flere opskrifter ??</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99590'+ data-commentid="99590" data-postid="30315"+ data-belowelement="div-comment-99590" data-respondelement="respond"+ data-replyto="Besvar Stina" aria-label='Besvar Stina'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-99785">+ <div id="div-comment-99785" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">25. april 2017 kl. 16:06</div>+ <div class="comment-text" itemprop="text">+ <p>Så skønt at høre! Tak for den dejlige tilbagemelding på+ opskriften<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-99785'+ data-commentid="99785" data-postid="30315"+ data-belowelement="div-comment-99785"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-100151">+ <div id="div-comment-100151" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Maria</strong> skrev:+ </div>+ <div class="comment-date">3. maj 2017 kl. 16:12</div>+ <div class="comment-text" itemprop="text">+ <p>Hurra. Jeg har længe savnet en lækker og hurtig pastaret og denne var+ perfekt. Jeg brugte revne gulerødder i stedet for squash som jeg+ ikke er gode venner med og det var fint. Ser frem til flere one+ pot’er ;)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100151'+ data-commentid="100151" data-postid="30315"+ data-belowelement="div-comment-100151" data-respondelement="respond"+ data-replyto="Besvar Maria" aria-label='Besvar Maria'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-100183">+ <div id="div-comment-100183" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. maj 2017 kl. 12:05</div>+ <div class="comment-text" itemprop="text">+ <p>Dejligt at høre :) Tak for den søde tilbagemelding på+ opskriften</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100183'+ data-commentid="100183" data-postid="30315"+ data-belowelement="div-comment-100183"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-100162">+ <div id="div-comment-100162" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Tine</strong> skrev:+ </div>+ <div class="comment-date">3. maj 2017 kl. 23:17</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Valdemarsro.<br />+ Til aften prøvede vi din One Pot Pasta, og jeg må sige, at den vakte+ stor begrejstring herhjemme. Især min forlovede var ellevild med+ smagen. </p>+ <p>Tusind tak for din meget inspirerende blog, og alle dine lækre og+ ikke mindst nemme retter.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100162'+ data-commentid="100162" data-postid="30315"+ data-belowelement="div-comment-100162" data-respondelement="respond"+ data-replyto="Besvar Tine" aria-label='Besvar Tine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-100187">+ <div id="div-comment-100187" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. maj 2017 kl. 12:10</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre! Tusind tak for den søde+ tilbagemelding på opskriften – den er virkelig også et+ kæmpe hit herhjemme hos os :)<br />+ Dejlig dag til dig og tak for de søde ord om min blog og+ opskrifter<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100187'+ data-commentid="100187" data-postid="30315"+ data-belowelement="div-comment-100187"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-100638">+ <div id="div-comment-100638" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Bettina</strong> skrev:+ </div>+ <div class="comment-date">13. maj 2017 kl. 09:47</div>+ <div class="comment-text" itemprop="text">+ <p>Hej,<br />+ Jeg synes din opskrift one pot pasta ser utrolig lækker ud, men jeg+ kan desværre ikke tåle gluten. Tænker du, at det vil være muligt at+ bruge risnudler, hvis man venter med at komme det tilsidst, da de+ kun skal have 4 min.????</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100638'+ data-commentid="100638" data-postid="30315"+ data-belowelement="div-comment-100638" data-respondelement="respond"+ data-replyto="Besvar Bettina" aria-label='Besvar Bettina'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-2" id="comment-102654">+ <div id="div-comment-102654" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Majbrit+ Thuesen</strong> skrev:</div>+ <div class="comment-date">8. juli 2017 kl. 17:23</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg er ej heller god til gluten omend jeg dog ikke er+ decideret allergiker, men rema har gode glutenfrie+ pastapende (på ris) og de bliver gode, når man tilbereder+ efter one-pot princippet</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102654'+ data-commentid="102654" data-postid="30315"+ data-belowelement="div-comment-102654"+ data-respondelement="respond"+ data-replyto="Besvar Majbrit Thuesen"+ aria-label='Besvar Majbrit Thuesen'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-100643">+ <div id="div-comment-100643" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. maj 2017 kl. 10:16</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har ikke prøvet det af – men det er da bestemt+ forsøget værd :)<br />+ Rigtig god fornøjelse<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100643'+ data-commentid="100643" data-postid="30315"+ data-belowelement="div-comment-100643"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-100787">+ <div id="div-comment-100787" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Rikke</strong> skrev:+ </div>+ <div class="comment-date">17. maj 2017 kl. 10:48</div>+ <div class="comment-text" itemprop="text">+ <p>Vi lavede One Pot Pasta for første gang i søndags – og sikke en+ succes! Tak Ann-Christine!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100787'+ data-commentid="100787" data-postid="30315"+ data-belowelement="div-comment-100787" data-respondelement="respond"+ data-replyto="Besvar Rikke" aria-label='Besvar Rikke'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-100837">+ <div id="div-comment-100837" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. maj 2017 kl. 11:43</div>+ <div class="comment-text" itemprop="text">+ <p>Fantastisk! Hvor er det dejligt at høre ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100837'+ data-commentid="100837" data-postid="30315"+ data-belowelement="div-comment-100837"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1" id="comment-100867">+ <div id="div-comment-100867" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Carina</strong> skrev:+ </div>+ <div class="comment-date">19. maj 2017 kl. 15:15</div>+ <div class="comment-text" itemprop="text">+ <p>Har du prøvet at erstatte pølsen med oksekød? Tænker for at få mere+ protein i retten?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100867'+ data-commentid="100867" data-postid="30315"+ data-belowelement="div-comment-100867" data-respondelement="respond"+ data-replyto="Besvar Carina" aria-label='Besvar Carina'>Svar</a>+ </div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-100868">+ <div id="div-comment-100868" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Carina</strong> skrev:+ </div>+ <div class="comment-date">19. maj 2017 kl. 15:18</div>+ <div class="comment-text" itemprop="text">+ <p>Undskyld ;) men glemte noget. og måske proppe en smule mindre pasta+ i. 100 g tør pasta pr person er for meget pr person efter mit hoved.+ Har du lavet retten med mindre pasta?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100868'+ data-commentid="100868" data-postid="30315"+ data-belowelement="div-comment-100868" data-respondelement="respond"+ data-replyto="Besvar Carina" aria-label='Besvar Carina'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2 parent"+ id="comment-100879">+ <div id="div-comment-100879" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. maj 2017 kl. 18:40</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har lavet den som jeg synes den bliver allerbedst+ ;)<br />+ Men du kan helt sikkert fint komme mindre pasta i.<br />+ Mht oksekød, så kan du fint komme brunet oksekød i, men så+ ville jeg nok supplere en hel del ekstra krydderier i, da+ den lækre chorizo krydre retten på den lækreste måde</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100879'+ data-commentid="100879" data-postid="30315"+ data-belowelement="div-comment-100879"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment even depth-3" id="comment-100882">+ <div id="div-comment-100882" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong+ itemprop="name">Carina</strong> skrev:</div>+ <div class="comment-date">19. maj 2017 kl. 18:45</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for svaret ?</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-100882' data-commentid="100882"+ data-postid="30315"+ data-belowelement="div-comment-100882"+ data-respondelement="respond"+ data-replyto="Besvar Carina"+ aria-label='Besvar Carina'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-100984">+ <div id="div-comment-100984" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anette</strong> skrev:+ </div>+ <div class="comment-date">22. maj 2017 kl. 09:35</div>+ <div class="comment-text" itemprop="text">+ <p>Alletiders ret … mine unger var ellevilde med smagen, og ikke+ mindst retten. Og så var det nemt og hurtigt :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100984'+ data-commentid="100984" data-postid="30315"+ data-belowelement="div-comment-100984" data-respondelement="respond"+ data-replyto="Besvar Anette" aria-label='Besvar Anette'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-100997">+ <div id="div-comment-100997" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">22. maj 2017 kl. 15:03</div>+ <div class="comment-text" itemprop="text">+ <p>Skønt at høre! Tusind tak for tilbagemeldingen :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-100997'+ data-commentid="100997" data-postid="30315"+ data-belowelement="div-comment-100997"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-101195">+ <div id="div-comment-101195" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Steffen</strong> skrev:+ </div>+ <div class="comment-date">26. maj 2017 kl. 14:31</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg ved godt man ikke må bruge bandeord når man skriver på en+ offentlig side, men hold da BIIIB hvor smagte den her ret+ godt.<br />+ Og hvor er jeg glad for at min hustru viste mig din side, tror også+ mine kollegaer bliver glade for at jeg har fundet den, for der er da+ et par opskrifter der ser mere end almindeligt lækre ud…<br />+ Mange tak herfra…</p>+ <p>KH Steffen</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101195'+ data-commentid="101195" data-postid="30315"+ data-belowelement="div-comment-101195" data-respondelement="respond"+ data-replyto="Besvar Steffen" aria-label='Besvar Steffen'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-101218">+ <div id="div-comment-101218" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">27. maj 2017 kl. 17:09</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det skønt at høre! Tusind tak for din fine hilsen og+ tilbagemelding :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101218'+ data-commentid="101218" data-postid="30315"+ data-belowelement="div-comment-101218"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-101311">+ <div id="div-comment-101311" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Clauds</strong> skrev:+ </div>+ <div class="comment-date">30. maj 2017 kl. 18:29</div>+ <div class="comment-text" itemprop="text">+ <p>Superlækker og nem ret? Men skal der virkelig fuld blus på? Alle de+ gode ting er brændt fast i gryden??</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101311'+ data-commentid="101311" data-postid="30315"+ data-belowelement="div-comment-101311" data-respondelement="respond"+ data-replyto="Besvar Clauds" aria-label='Besvar Clauds'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-101343">+ <div id="div-comment-101343" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">30. maj 2017 kl. 22:04</div>+ <div class="comment-text" itemprop="text">+ <p>Nej endelig ikke – det skal simre, som der står i+ opskriften :)<br />+ Jeg skruer ned så snart det er kommet i kog. </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101343'+ data-commentid="101343" data-postid="30315"+ data-belowelement="div-comment-101343"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-101673">+ <div id="div-comment-101673" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Morten</strong> skrev:+ </div>+ <div class="comment-date">10. juni 2017 kl. 08:10</div>+ <div class="comment-text" itemprop="text">+ <p>Hejsa – hvordan er sådan en one pot dagen derpå.<br />+ Vi er en lille familie, så sådan en portion vil række til 2 dage+ (hvilket også er herligt) men mister den så meget kvalitet at det er+ bedre at lave en halv portion hver dag?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101673'+ data-commentid="101673" data-postid="30315"+ data-belowelement="div-comment-101673" data-respondelement="respond"+ data-replyto="Besvar Morten" aria-label='Besvar Morten'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-101740">+ <div id="div-comment-101740" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">12. juni 2017 kl. 06:09</div>+ <div class="comment-text" itemprop="text">+ <p>Den er allerbedst frisklavet, men vi har også haft rester og+ synes den er skøn til frokost eller restemad dagen efter :)+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101740'+ data-commentid="101740" data-postid="30315"+ data-belowelement="div-comment-101740"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-101820">+ <div id="div-comment-101820" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Laila</strong> skrev:+ </div>+ <div class="comment-date">13. juni 2017 kl. 20:12</div>+ <div class="comment-text" itemprop="text">+ <p>I dag lavede vi denne lækkere ret.<br />+ Vi måtte dog bruge mere væske end oplyst<br />+ Ca 1.-2 dl og det var helt alm. pasta<br />+ ?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101820'+ data-commentid="101820" data-postid="30315"+ data-belowelement="div-comment-101820" data-respondelement="respond"+ data-replyto="Besvar Laila" aria-label='Besvar Laila'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-101854">+ <div id="div-comment-101854" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">14. juni 2017 kl. 11:09</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg tror det fint kan variere en hel del med væsken, da der+ kan være en del variation i hvor meget væske fx squash+ afgiver :) Her har det fint passet med den angivne mængde+ hver gang vi selv laver den :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-101854'+ data-commentid="101854" data-postid="30315"+ data-belowelement="div-comment-101854"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-102111">+ <div id="div-comment-102111" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Luise</strong> skrev:+ </div>+ <div class="comment-date">20. juni 2017 kl. 20:46</div>+ <div class="comment-text" itemprop="text">+ <p>Hvis man vil have flere grøntsager i, har du så en idé til hvilke,+ der vil fungere? :-) </p>+ <p>Mvh</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102111'+ data-commentid="102111" data-postid="30315"+ data-belowelement="div-comment-102111" data-respondelement="respond"+ data-replyto="Besvar Luise" aria-label='Besvar Luise'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-102116">+ <div id="div-comment-102116" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">20. juni 2017 kl. 20:55</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg vil nok mest af alt vælge at supplere op med endnu flere+ af de samme grøntsager, hvilket den fint kan klare. Det har+ jeg selv gjort nogle gange – 2-3 x mere squash, flere+ tomater og måske aubergine, som også er god til at tage smag+ fra det hele.<br />+ Du kan også komme gulerødder i, men så vil den ændre smag en+ del. Ikke at det er dårligt, nødvendigvis dog ;)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102116'+ data-commentid="102116" data-postid="30315"+ data-belowelement="div-comment-102116"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-102263">+ <div id="div-comment-102263" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Brian Nybo</strong>+ skrev:</div>+ <div class="comment-date">26. juni 2017 kl. 15:31</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for en lækker opskrift.<br />+ Har du prøvet at gange op med 4?? Vil koge tiden være den samme?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102263'+ data-commentid="102263" data-postid="30315"+ data-belowelement="div-comment-102263" data-respondelement="respond"+ data-replyto="Besvar Brian Nybo"+ aria-label='Besvar Brian Nybo'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-102314">+ <div id="div-comment-102314" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">27. juni 2017 kl. 06:50</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har ikke prøvet det, men tror at hvis du bringer retten i+ kog og derefter rører godt rundt – skruer ned for+ varmen til den simrer og sætter låg på, så vil kogetiden+ derefter være den samme og nogenlunde svarende til den pasta+ du bruger.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102314'+ data-commentid="102314" data-postid="30315"+ data-belowelement="div-comment-102314"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-102499">+ <div id="div-comment-102499" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Ida</strong> skrev:+ </div>+ <div class="comment-date">3. juli 2017 kl. 15:25</div>+ <div class="comment-text" itemprop="text">+ <p>Lækker lækker opskrift, AC! Men hvordan undgår du, at det brænder på?+ Jeg har fulgt din opskrift et par gange, men det er brændt på alle+ gangene..</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102499'+ data-commentid="102499" data-postid="30315"+ data-belowelement="div-comment-102499" data-respondelement="respond"+ data-replyto="Besvar Ida" aria-label='Besvar Ida'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-102501">+ <div id="div-comment-102501" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. juli 2017 kl. 15:50</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre.<br />+ – jeg har ikke selv oplevet at det brænder på, men+ måske har det kogt for meget – det skal blot simre+ efter det er kogt op og du kan evt lige røre det rundt en+ gang, når det er kogt op og du skruer temperaturen ned til+ simre-varme.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102501'+ data-commentid="102501" data-postid="30315"+ data-belowelement="div-comment-102501"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-102653">+ <div id="div-comment-102653" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Majbrit Thuesen</strong>+ skrev:</div>+ <div class="comment-date">8. juli 2017 kl. 17:20</div>+ <div class="comment-text" itemprop="text">+ <p>Den ser lækker ud varianenten med chorizo og må straks tilføjes+ madplanen for næste uge.<br />+ Jeg plejer selv at lave min variant med kylling, hvidløg, champignon+ og spinat.<br />+ Ungerne elsker den</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102653'+ data-commentid="102653" data-postid="30315"+ data-belowelement="div-comment-102653" data-respondelement="respond"+ data-replyto="Besvar Majbrit Thuesen"+ aria-label='Besvar Majbrit Thuesen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-102674">+ <div id="div-comment-102674" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. juli 2017 kl. 09:36</div>+ <div class="comment-text" itemprop="text">+ <p>Rigtig god fornøjelse med den :) Det er så dejligt nemt og+ lækkert med one pot retter ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-102674'+ data-commentid="102674" data-postid="30315"+ data-belowelement="div-comment-102674"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-103918">+ <div id="div-comment-103918" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Julie</strong> skrev:+ </div>+ <div class="comment-date">3. august 2017 kl. 14:15</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine, </p>+ <p>Jeg håber, du ser denne besked. </p>+ <p>Men skal det koge i de ti minutters tid, det står med låg på? Eller+ skal der skrues ned, så det småkoger? Eller endnu længere ned, så+ det bare simrer? </p>+ <p>Glæder mig til at prøve det i aften!!!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-103918'+ data-commentid="103918" data-postid="30315"+ data-belowelement="div-comment-103918" data-respondelement="respond"+ data-replyto="Besvar Julie" aria-label='Besvar Julie'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-103962">+ <div id="div-comment-103962" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. august 2017 kl. 07:21</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Julie,<br />+ Det står i opskriften ;)<br />+ Jeg lader det koge op og skruer derefter ned til det blot+ simrer.<br />+ Håber det blev godt :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-103962'+ data-commentid="103962" data-postid="30315"+ data-belowelement="div-comment-103962"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-104131">+ <div id="div-comment-104131" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Therese</strong> skrev:+ </div>+ <div class="comment-date">6. august 2017 kl. 21:06</div>+ <div class="comment-text" itemprop="text">+ <p>Hej, tak for dejlig opskrift. Har prøvet den 2 gange nu og 5dl vand+ har været for lidt begge gange. Jeg har måtte hælde mere vand på+ (250ml+) – gør jeg noget forkert?<br />+ Bonusspørgsmål – har du andre versioner af den? Altså med+ andre ingredienser?<br />+ Tak!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-104131'+ data-commentid="104131" data-postid="30315"+ data-belowelement="div-comment-104131" data-respondelement="respond"+ data-replyto="Besvar Therese" aria-label='Besvar Therese'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-104153">+ <div id="div-comment-104153" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. august 2017 kl. 06:52</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Therese,<br />+ Det er svært at sige om der gøres noget forkert … har+ du evt set videoen hvor jeg laver den, og viser retten efter+ den er færdig. Mængden passer perfekt her, men hvis du er+ glad for opskriften med mere vand, så er det jo endelig bare+ det du gør :)<br />+ Jeg har denne opskrift på <a+ href="http://www.valdemarsro.dk/one-pot-pasta-med-champignon-og-bacon/"+ target="_blank">one pot pasta med champignon</a> også+ – og så finder jeg sikkert på flere i løbet af+ efteråret ;)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-104153'+ data-commentid="104153" data-postid="30315"+ data-belowelement="div-comment-104153"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-105251">+ <div id="div-comment-105251" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Tanya</strong> skrev:+ </div>+ <div class="comment-date">22. august 2017 kl. 09:37</div>+ <div class="comment-text" itemprop="text">+ <p>Findes der et alternativ til pastaen? Vil man eksempelvis kunne bruge+ soya bønne pasta istedet tror du?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-105251'+ data-commentid="105251" data-postid="30315"+ data-belowelement="div-comment-105251" data-respondelement="respond"+ data-replyto="Besvar Tanya" aria-label='Besvar Tanya'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-105348">+ <div id="div-comment-105348" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">23. august 2017 kl. 13:28</div>+ <div class="comment-text" itemprop="text">+ <p>Det er ikke testet, men prøv endelig og justere blot+ kogetiden til efter behov</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-105348'+ data-commentid="105348" data-postid="30315"+ data-belowelement="div-comment-105348"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-105375">+ <div id="div-comment-105375" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Inge</strong> skrev:+ </div>+ <div class="comment-date">23. august 2017 kl. 19:07</div>+ <div class="comment-text" itemprop="text">+ <p>Mega lækkert – velsmagende og nemt. We like a lot?.<br />+ Er stor fan af din blog og henter tit inspiration her – så tak+ for det.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-105375'+ data-commentid="105375" data-postid="30315"+ data-belowelement="div-comment-105375" data-respondelement="respond"+ data-replyto="Besvar Inge" aria-label='Besvar Inge'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-105397">+ <div id="div-comment-105397" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">24. august 2017 kl. 07:12</div>+ <div class="comment-text" itemprop="text">+ <p>Tusind tak! Det er jeg rigtig glad for at høre ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-105397'+ data-commentid="105397" data-postid="30315"+ data-belowelement="div-comment-105397"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-107684">+ <div id="div-comment-107684" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Cecilie</strong> skrev:+ </div>+ <div class="comment-date">18. september 2017 kl. 20:51</div>+ <div class="comment-text" itemprop="text">+ <p>Må jeg spørge hvor dine fine små træ-skåle er fra? :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-107684'+ data-commentid="107684" data-postid="30315"+ data-belowelement="div-comment-107684" data-respondelement="respond"+ data-replyto="Besvar Cecilie" aria-label='Besvar Cecilie'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-107912">+ <div id="div-comment-107912" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">20. september 2017 kl. 09:11</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg tror de er fra housedoktor, men de er et par år gamle, så+ ved ikke om de stadig har dem :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-107912'+ data-commentid="107912" data-postid="30315"+ data-belowelement="div-comment-107912"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-108201">+ <div id="div-comment-108201" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Louise+ Hinrichsen</strong> skrev:</div>+ <div class="comment-date">24. september 2017 kl. 16:33</div>+ <div class="comment-text" itemprop="text">+ <p>Måske en anden har spurgt, men orker ikke lige (Sorry) at læse alle+ 114 kommentarer. Hvis man ikke er super pjattet med chorizo, hvad+ vil du så anbefale at bytte det ud med? Eller kan du anbefale en god+ chorizo, der kan købes i de fleste supermarkeder?<br />+ Tak for en dejlig blog og elsker at få en mail fra dig om lørdagen+ til skøn inspiration til ugens retter.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-108201'+ data-commentid="108201" data-postid="30315"+ data-belowelement="div-comment-108201" data-respondelement="respond"+ data-replyto="Besvar Louise Hinrichsen"+ aria-label='Besvar Louise Hinrichsen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-108248">+ <div id="div-comment-108248" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">25. september 2017 kl. 12:21</div>+ <div class="comment-text" itemprop="text">+ <p>Du kan fint undlade det eller bytte chorizo med bacon.<br />+ Min egen favorit chorizo er en økologisk variant fra Aalbæk,+ som kan købes i de fleste supermarkeder (den er rigtig+ lækker).<br />+ Tak for din søde hilsen, det er så dejligt at høre ♡<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-108248'+ data-commentid="108248" data-postid="30315"+ data-belowelement="div-comment-108248"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-109472">+ <div id="div-comment-109472" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Heidi</strong> skrev:+ </div>+ <div class="comment-date">13. oktober 2017 kl. 19:11</div>+ <div class="comment-text" itemprop="text">+ <p>hvad kan man bruge i stedet for chorizo, til at få en fyldig smag,+ spiser ikke kød.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-109472'+ data-commentid="109472" data-postid="30315"+ data-belowelement="div-comment-109472" data-respondelement="respond"+ data-replyto="Besvar Heidi" aria-label='Besvar Heidi'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-109473">+ <div id="div-comment-109473" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. oktober 2017 kl. 19:44</div>+ <div class="comment-text" itemprop="text">+ <p>Røget paprika er et godt alternativ til den krydrede smag :)+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-109473'+ data-commentid="109473" data-postid="30315"+ data-belowelement="div-comment-109473"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-109992">+ <div id="div-comment-109992" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mari</strong> skrev:+ </div>+ <div class="comment-date">24. oktober 2017 kl. 19:19</div>+ <div class="comment-text" itemprop="text">+ <p>Det er en virkelig velsmagende ret:-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-109992'+ data-commentid="109992" data-postid="30315"+ data-belowelement="div-comment-109992" data-respondelement="respond"+ data-replyto="Besvar Mari" aria-label='Besvar Mari'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-110082">+ <div id="div-comment-110082" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">26. oktober 2017 kl. 15:24</div>+ <div class="comment-text" itemprop="text">+ <p>Det er jeg glad for du synes :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-110082'+ data-commentid="110082" data-postid="30315"+ data-belowelement="div-comment-110082"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-110104">+ <div id="div-comment-110104" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Julie</strong> skrev:+ </div>+ <div class="comment-date">26. oktober 2017 kl. 21:14</div>+ <div class="comment-text" itemprop="text">+ <p>Tak, for en virkelig god madoplevelse! Det er første gang jeg vover+ mig ud i en one pot pasta. Jeg troede ikke at noget så nemt kunne+ blive så lækkert :)<br />+ Jeg tilføjede endda nogle champignons og ekstra chorizopølse for at+ få brugt resterne. Det kunne sagtens fungere med en ekstra sjat+ vand.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-110104'+ data-commentid="110104" data-postid="30315"+ data-belowelement="div-comment-110104" data-respondelement="respond"+ data-replyto="Besvar Julie" aria-label='Besvar Julie'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-110137">+ <div id="div-comment-110137" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">27. oktober 2017 kl. 13:55</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det skønt at høre :) – det er jo nemlig helt+ overraskende lækkert. Du må endelig prøve nogle af de andre+ af jeg har lavet også :)<br />+ God weekend<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-110137'+ data-commentid="110137" data-postid="30315"+ data-belowelement="div-comment-110137"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-110575">+ <div id="div-comment-110575" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Susanne</strong> skrev:+ </div>+ <div class="comment-date">3. november 2017 kl. 17:14</div>+ <div class="comment-text" itemprop="text">+ <p>Det her er lækkert. Kan man mon putte+ spaghetti/dåse-tomater/løg/hvidløg/cherrytomater og kyllinge+ inderlår i sammen med 5 dl bouillon? Eller bør kylling være kogt for+ sig?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-110575'+ data-commentid="110575" data-postid="30315"+ data-belowelement="div-comment-110575" data-respondelement="respond"+ data-replyto="Besvar Susanne" aria-label='Besvar Susanne'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-110600">+ <div id="div-comment-110600" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. november 2017 kl. 08:35</div>+ <div class="comment-text" itemprop="text">+ <p>Kyllingen bør tilberedes inden :) Man kan enten kogekylling i+ grøntsagsboullion og så bruge den boullion til one pot pasta+ efterfølgende :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-110600'+ data-commentid="110600" data-postid="30315"+ data-belowelement="div-comment-110600"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-111297">+ <div id="div-comment-111297" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Marco</strong> skrev:+ </div>+ <div class="comment-date">15. november 2017 kl. 19:31</div>+ <div class="comment-text" itemprop="text">+ <p>Wow! </p>+ <p>Endnu en lækker One Pot Pasta! Tak!</p>+ <p>Det er nu nummer 2 vi prøver og den er også super lækker! En skøn ret+ til om onsdagen, hvor den står på Ninja-træning for Sander og tiden+ derfor er knap.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-111297'+ data-commentid="111297" data-postid="30315"+ data-belowelement="div-comment-111297" data-respondelement="respond"+ data-replyto="Besvar Marco" aria-label='Besvar Marco'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-111334">+ <div id="div-comment-111334" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">15. november 2017 kl. 21:34</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor godt! Det er dejligt at høre, Marco :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-111334'+ data-commentid="111334" data-postid="30315"+ data-belowelement="div-comment-111334"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-111478">+ <div id="div-comment-111478" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Brit</strong> skrev:+ </div>+ <div class="comment-date">18. november 2017 kl. 15:49</div>+ <div class="comment-text" itemprop="text">+ <p>Måske lidt specielt spørgsmål… men er det er 20 cm eller 24 cm+ le creuset gryde? ?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-111478'+ data-commentid="111478" data-postid="30315"+ data-belowelement="div-comment-111478" data-respondelement="respond"+ data-replyto="Besvar Brit" aria-label='Besvar Brit'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-111606">+ <div id="div-comment-111606" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">20. november 2017 kl. 10:53</div>+ <div class="comment-text" itemprop="text">+ <p>Min er 4,2 Liter :) Ved ikke lige hvor mange cm i omkreds+ … :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-111606'+ data-commentid="111606" data-postid="30315"+ data-belowelement="div-comment-111606"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-112584">+ <div id="div-comment-112584" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name"><a+ href='http://www.louisesmadblog.dk' rel='external nofollow ugc'+ class='url'>Louise</a></strong> skrev:</div>+ <div class="comment-date">5. december 2017 kl. 20:41</div>+ <div class="comment-text" itemprop="text">+ <p>Super lækker og nem ret :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-112584'+ data-commentid="112584" data-postid="30315"+ data-belowelement="div-comment-112584" data-respondelement="respond"+ data-replyto="Besvar Louise" aria-label='Besvar Louise'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-112640">+ <div id="div-comment-112640" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">6. december 2017 kl. 13:33</div>+ <div class="comment-text" itemprop="text">+ <p>Dejligt at høre, Louise :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-112640'+ data-commentid="112640" data-postid="30315"+ data-belowelement="div-comment-112640"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-112967">+ <div id="div-comment-112967" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anette+ Abildskov</strong> skrev:</div>+ <div class="comment-date">12. december 2017 kl. 11:20</div>+ <div class="comment-text" itemprop="text">+ <p>hej<br />+ jeg skal lave denne skønne ret til aften og vil høre dig, hvilken+ salat passer til?<br />+ Igen på forhånd tak.<br />+ Glædelig jul<br />+ Hilsen fra Anette</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-112967'+ data-commentid="112967" data-postid="30315"+ data-belowelement="div-comment-112967" data-respondelement="respond"+ data-replyto="Besvar Anette Abildskov"+ aria-label='Besvar Anette Abildskov'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-112970">+ <div id="div-comment-112970" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">12. december 2017 kl. 11:40</div>+ <div class="comment-text" itemprop="text">+ <p>En dejlig <a href="http://www.valdemarsro.dk/groen-salat/"+ rel="noopener" target="_blank">salat</a> er altid et hit+ – selv spiser jeg også gerne <a+ href="http://www.valdemarsro.dk/groenkaalssalat/"+ rel="noopener" target="_blank">grønkålssalat</a> til+ stort set alt i øjeblikket ;)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-112970'+ data-commentid="112970" data-postid="30315"+ data-belowelement="div-comment-112970"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-113234">+ <div id="div-comment-113234" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Helle</strong> skrev:+ </div>+ <div class="comment-date">16. december 2017 kl. 18:56</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg er kæmpe fan – smager jo himmelsk.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-113234'+ data-commentid="113234" data-postid="30315"+ data-belowelement="div-comment-113234" data-respondelement="respond"+ data-replyto="Besvar Helle" aria-label='Besvar Helle'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-113298">+ <div id="div-comment-113298" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">17. december 2017 kl. 17:10</div>+ <div class="comment-text" itemprop="text">+ <p>Så dejligt at høre :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-113298'+ data-commentid="113298" data-postid="30315"+ data-belowelement="div-comment-113298"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-114432">+ <div id="div-comment-114432" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Tanja</strong> skrev:+ </div>+ <div class="comment-date">4. januar 2018 kl. 17:44</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg spurgte på et tidspunkt efter one pot ris, fordi jeg ikke er så+ god til pasta. Men så prøvede jeg alligevel denne en dag, hvor det+ skulle gå hurtigt. Det er den første pastaret – bortset fra+ lasagne – som jeg virkelig er vild med ? Bla fordi den er så+ nem. Kæmpehit på madplanen, som den ofte vil optræde på. Tusind tak+ for en skøn skøn nem opskrift. Og for pastainspiration. Squash er+ eminent til at gøre retten cremet og lækker.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-114432'+ data-commentid="114432" data-postid="30315"+ data-belowelement="div-comment-114432" data-respondelement="respond"+ data-replyto="Besvar Tanja" aria-label='Besvar Tanja'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-114472">+ <div id="div-comment-114472" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">5. januar 2018 kl. 14:38</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det skønt at du prøvede den af og at det blev en+ succes, ikke mindst :)<br />+ Jeg kan ikke huske om jeg skrev tippet med <a+ href="http://www.valdemarsro.dk/fried-rice-med-kylling/"+ rel="noopener" target="_blank">Fried Rice opskriften</a>+ til dig – den er virkelig lækker :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-114472'+ data-commentid="114472" data-postid="30315"+ data-belowelement="div-comment-114472"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-114574">+ <div id="div-comment-114574" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lotte</strong> skrev:+ </div>+ <div class="comment-date">7. januar 2018 kl. 20:34</div>+ <div class="comment-text" itemprop="text">+ <p>Hej.<br />+ Lyder som en ret der er lige noget for os :-) Travl hverdag og+ alligevel mulighed for lækkert mad. Den skal helt sikkert+ prøves:-)<br />+ Gryden du bruger ser ud som om det er en fantastisk lækker gryde,+ god i størrelsen, og rigtig anvendelig til mange ting. Kan se det er+ Le Creuset (altid garanti for god kvalitet ;-)), men hvad er+ størrelsen på den? Højde og diameter?<br />+ Tak for en virkelig god og brugbar blog??</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-114574'+ data-commentid="114574" data-postid="30315"+ data-belowelement="div-comment-114574" data-respondelement="respond"+ data-replyto="Besvar Lotte" aria-label='Besvar Lotte'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-114621">+ <div id="div-comment-114621" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">8. januar 2018 kl. 19:41</div>+ <div class="comment-text" itemprop="text">+ <p>Det er virkelig også en skøn skøn ret ♡<br />+ Min LeCreuset er den runde på 4,2 liter – jeg tror den+ er 24 cm i diamenter.<br />+ Tak for din søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-114621'+ data-commentid="114621" data-postid="30315"+ data-belowelement="div-comment-114621"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment odd alt depth-2" id="comment-114575">+ <div id="div-comment-114575" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lotte</strong>+ skrev:</div>+ <div class="comment-date">7. januar 2018 kl. 20:42</div>+ <div class="comment-text" itemprop="text">+ <p>Ja – når jeg nu leder blandt Le Creuset gryder, er det+ nok også nødvendigt at vide hvilken type gryde det er og+ hvor mange liter. Der er jo mange at vælge imellem, og jeg+ vil jo gerne finde den rigtige:-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-114575'+ data-commentid="114575" data-postid="30315"+ data-belowelement="div-comment-114575"+ data-respondelement="respond" data-replyto="Besvar Lotte"+ aria-label='Besvar Lotte'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-115065">+ <div id="div-comment-115065" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sandra</strong> skrev:+ </div>+ <div class="comment-date">20. januar 2018 kl. 20:55</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for skøn mad-inspiration – lavede one-pot-pasta første gang+ idag. Og det er virkelig lækkert, og ultra nemt.<br />+ Ha en skøn aften, kh. Sandra</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-115065'+ data-commentid="115065" data-postid="30315"+ data-belowelement="div-comment-115065" data-respondelement="respond"+ data-replyto="Besvar Sandra" aria-label='Besvar Sandra'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-115129">+ <div id="div-comment-115129" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">22. januar 2018 kl. 15:41</div>+ <div class="comment-text" itemprop="text">+ <p>Så dejligt at høre ♡ Tak for din fine hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-115129'+ data-commentid="115129" data-postid="30315"+ data-belowelement="div-comment-115129"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1" id="comment-115450">+ <div id="div-comment-115450" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Josephine</strong>+ skrev:</div>+ <div class="comment-date">30. januar 2018 kl. 01:54</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg kan anbefale at starte med at sprødriste chorizoen, og så lade+ den dryppe af på køkkenrulle imens retten i øvrigt laves efter+ opskriften. Det er så lækkert med den sprøde chorizo ovenpå pastaen+ :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-115450'+ data-commentid="115450" data-postid="30315"+ data-belowelement="div-comment-115450" data-respondelement="respond"+ data-replyto="Besvar Josephine"+ aria-label='Besvar Josephine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-115683">+ <div id="div-comment-115683" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sanne</strong> skrev:+ </div>+ <div class="comment-date">4. februar 2018 kl. 22:17</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg bliver simpelthen nødt til at spørge ? hvor har du den fine gryde+ fra?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-115683'+ data-commentid="115683" data-postid="30315"+ data-belowelement="div-comment-115683" data-respondelement="respond"+ data-replyto="Besvar Sanne" aria-label='Besvar Sanne'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-115726">+ <div id="div-comment-115726" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">5. februar 2018 kl. 15:04</div>+ <div class="comment-text" itemprop="text">+ <p>Den er fra Le Creuset</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-115726'+ data-commentid="115726" data-postid="30315"+ data-belowelement="div-comment-115726"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-116740">+ <div id="div-comment-116740" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Jesper</strong> skrev:+ </div>+ <div class="comment-date">7. marts 2018 kl. 13:44</div>+ <div class="comment-text" itemprop="text">+ <p>Måske et dumt spørgsmål. Men hvordan er rettens mængde ift. 4+ personer. Er det sådan, at alle fire bliver mæt / der er lidt+ ekstra. Eller er det blot 4 standard portioner?<br />+ Jeg står og skal lave mad til en gruppe på 7 :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-116740'+ data-commentid="116740" data-postid="30315"+ data-belowelement="div-comment-116740" data-respondelement="respond"+ data-replyto="Besvar Jesper" aria-label='Besvar Jesper'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-116741">+ <div id="div-comment-116741" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. marts 2018 kl. 13:47</div>+ <div class="comment-text" itemprop="text">+ <p>Stort set alle mine opskrifter er lavet til en familie på+ fire, inkl denne. Dvs 2 børn og to voksne – hvis man+ fx er fire voksne, så skal der måske en smule tilbehør som+ salat, brød eller lign til, før det rækker helt.<br />+ Så når du skal lave til 7 personer vil jeg blot anbefale at+ gange opskriften med to – så er du sikker på at der er+ nok :)<br />+ God fornøjelse<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-116741'+ data-commentid="116741" data-postid="30315"+ data-belowelement="div-comment-116741"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-116936">+ <div id="div-comment-116936" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lisbet</strong> skrev:+ </div>+ <div class="comment-date">13. marts 2018 kl. 18:47</div>+ <div class="comment-text" itemprop="text">+ <p>Fungerer også super med squash i tern i stedet for revet. ( når det+ går så stærkt st man ikke læser hele opskriften)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-116936'+ data-commentid="116936" data-postid="30315"+ data-belowelement="div-comment-116936" data-respondelement="respond"+ data-replyto="Besvar Lisbet" aria-label='Besvar Lisbet'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-116964">+ <div id="div-comment-116964" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">14. marts 2018 kl. 18:02</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for at dele tippet :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-116964'+ data-commentid="116964" data-postid="30315"+ data-belowelement="div-comment-116964"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-117457">+ <div id="div-comment-117457" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mikael Hasle+ Laursen</strong> skrev:</div>+ <div class="comment-date">1. april 2018 kl. 20:53</div>+ <div class="comment-text" itemprop="text">+ <p>Hej,<br />+ Vi har forsøgt os med denne ret i aften – virkeligt+ lækker.<br />+ Vi har nogle spørgsmål:</p>+ <p>1: hvordan undgår man, det brænder på, hvis man bare skal lade det+ stå under låg i alle 10-12 min. uden at røre i det? Kan det være en+ fordel at bruge støbejernsgryde?</p>+ <p>2: Gør set nogen forskel, hvilken pastatype man bruger? Og kan man+ bruge frisk pasta?</p>+ <p>3: Vi synes, din ser ud til at have mere væske tilbage, når den er+ færdig, end vores havde. Har du nogle bud på, hvordan det kan være?+ </p>+ <p>God påske.</p>+ <p>Hilsen Camilla og Mikael</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-117457'+ data-commentid="117457" data-postid="30315"+ data-belowelement="div-comment-117457" data-respondelement="respond"+ data-replyto="Besvar Mikael Hasle Laursen"+ aria-label='Besvar Mikael Hasle Laursen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-117525">+ <div id="div-comment-117525" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. april 2018 kl. 13:39</div>+ <div class="comment-text" itemprop="text">+ <p>Dejligt at høre!<br />+ Det skal gerne røres rundt, så snart det koger og derefter+ stå. Skrue ned for varmen, så det blot koger sagte under+ låg, så oplever jeg ikke det brænder på – men det kan+ variere fra gryde til gryde. Støbejernsgryde er<em>+ ikke</em> et must!<br />+ Frisk pasta duer ikke, da det ikke skal koge så længe+ – alternativt skal saucen koges 10 min før pastaen+ tilsættes. Og ellers så ja, der er stor forskel på pastaer+ og hvilken der bruges, jeg bruger her spaghetti – men+ forsøg jer endelig frem :)<br />+ God påske<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-117525'+ data-commentid="117525" data-postid="30315"+ data-belowelement="div-comment-117525"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-118855">+ <div id="div-comment-118855" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Henrik</strong> skrev:+ </div>+ <div class="comment-date">1. maj 2018 kl. 19:32</div>+ <div class="comment-text" itemprop="text">+ <p>Hold da kæft… Tak for en vaskeægte eye-opener!</p>+ <p>Hvor er resultatet bare overdrevet velsmagende, aromatisk og lækkert!+ </p>+ <p>I stedet for hønsefond, brugte jeg en hønse-terning sammen med de 5+ dl vand. Plain and simple.</p>+ <p>Absolut ikke sidste gang den her ret trylles frem. Tværtimod. Det+ dufter allerede af en signatur-sommerhusret!</p>+ <p>Thumbs up!</p>+ <p>/Henrik</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-118855'+ data-commentid="118855" data-postid="30315"+ data-belowelement="div-comment-118855" data-respondelement="respond"+ data-replyto="Besvar Henrik" aria-label='Besvar Henrik'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-118900">+ <div id="div-comment-118900" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. maj 2018 kl. 10:44</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor dejligt!<br />+ Det er jo virkelig motiverende og dejligt med så skønne+ tilbagemeldinger på mine opskrifter – så tusind tak+ :)<br />+ Vi synes også den er et kæmpe sommerhus- og hverdagshit og+ jeg kan varmt anbefale også at tage et kig på de andre one+ pot opskrifter jeg har lavet – du kan finde dem <a+ href="https://www.valdemarsro.dk/pasta/" rel="noopener"+ target="_blank">her, under pasta opskrifter</a></p>+ <p>Dejlig dag til dig.<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-118900'+ data-commentid="118900" data-postid="30315"+ data-belowelement="div-comment-118900"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-119075">+ <div id="div-comment-119075" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Tanja</strong> skrev:+ </div>+ <div class="comment-date">5. maj 2018 kl. 11:32</div>+ <div class="comment-text" itemprop="text">+ <p>Hej,<br />+ jeg har smagt din one pot pasta hos en veninde forleden og denne ret+ var superlækkert.</p>+ <p>Nu vil jeg gerne selv prøve at lave den, når vi får gæster.<br />+ Så jeg tænker jeg vil lave dobbelt portion af din opskrift.<br />+ Er der noget jeg skal være opmærksom på? Har du prøvet at lave en+ stor mængde af denne ret?<br />+ I øvrigt en meget fin inspirerende blog.<br />+ Jeg har lavet den lækre rejesalat med avocadoer etc.+ Superlækkert.:-) </p>+ <p>Mvh,<br />+ Tanja</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119075'+ data-commentid="119075" data-postid="30315"+ data-belowelement="div-comment-119075" data-respondelement="respond"+ data-replyto="Besvar Tanja" aria-label='Besvar Tanja'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-119158">+ <div id="div-comment-119158" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">7. maj 2018 kl. 10:20</div>+ <div class="comment-text" itemprop="text">+ <p>Du kan fint lave dobbeltportion, blot vær opmærksom på at+ røre godt i gryden så snart det koger og derefter skal det+ blot simre.<br />+ Tak for din søde hilsen ♡ Det er dejligt at høre :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119158'+ data-commentid="119158" data-postid="30315"+ data-belowelement="div-comment-119158"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-119219">+ <div id="div-comment-119219" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sanne</strong> skrev:+ </div>+ <div class="comment-date">8. maj 2018 kl. 10:21</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg ved ikke hvorfor jeg altid har tænkt at man skulle koge pasta ved+ siden af ens ret og kun i vand og først blande pastaen i retten+ senere. Men er det ligeså godt bare at koge pastaen sammen med+ retten?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119219'+ data-commentid="119219" data-postid="30315"+ data-belowelement="div-comment-119219" data-respondelement="respond"+ data-replyto="Besvar Sanne" aria-label='Besvar Sanne'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-119235">+ <div id="div-comment-119235" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">8. maj 2018 kl. 20:34</div>+ <div class="comment-text" itemprop="text">+ <p>Det er langt fra alle pastaretter hvor det kan lade sig gøre+ – men jeg synes da helt sikkert du må prøve denne af+ og se om du ikke er enig i at det smager virkelig lækkert ♡+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119235'+ data-commentid="119235" data-postid="30315"+ data-belowelement="div-comment-119235"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-119482">+ <div id="div-comment-119482" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Dorte</strong> skrev:+ </div>+ <div class="comment-date">17. maj 2018 kl. 19:57</div>+ <div class="comment-text" itemprop="text">+ <p>Ungerne spiste det, uden vrøvl… !!!<br />+ Gemalen synes det er en gemmeopskrift= lave igen?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119482'+ data-commentid="119482" data-postid="30315"+ data-belowelement="div-comment-119482" data-respondelement="respond"+ data-replyto="Besvar Dorte" aria-label='Besvar Dorte'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-119510">+ <div id="div-comment-119510" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">18. maj 2018 kl. 08:26</div>+ <div class="comment-text" itemprop="text">+ <p>Det er jo perfekt ♡</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119510'+ data-commentid="119510" data-postid="30315"+ data-belowelement="div-comment-119510"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-119578">+ <div id="div-comment-119578" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Ida V.R.</strong> skrev:+ </div>+ <div class="comment-date">20. maj 2018 kl. 13:29</div>+ <div class="comment-text" itemprop="text">+ <p>Kan den revne squash udelades uden de store problemer?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119578'+ data-commentid="119578" data-postid="30315"+ data-belowelement="div-comment-119578" data-respondelement="respond"+ data-replyto="Besvar Ida V.R." aria-label='Besvar Ida V.R.'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-119680">+ <div id="div-comment-119680" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">22. maj 2018 kl. 12:14</div>+ <div class="comment-text" itemprop="text">+ <p>ja, det kan det sagtens. Squash gør saucen mere cremet,+ fyldig og samler den, men det smager også dejligt+ uden.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-119680'+ data-commentid="119680" data-postid="30315"+ data-belowelement="div-comment-119680"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-121752">+ <div id="div-comment-121752" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Celina</strong> skrev:+ </div>+ <div class="comment-date">29. juni 2018 kl. 19:11</div>+ <div class="comment-text" itemprop="text">+ <p>Hej! Hvor ser den opskrift bare lækker ud og god til sommervarmen med+ alle de friske ingredienser! Tror du mon man kan erstatte med+ fuldkorns spaghetti eller er det for stift til at optage væsken?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-121752'+ data-commentid="121752" data-postid="30315"+ data-belowelement="div-comment-121752" data-respondelement="respond"+ data-replyto="Besvar Celina" aria-label='Besvar Celina'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-122053">+ <div id="div-comment-122053" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. juli 2018 kl. 11:05</div>+ <div class="comment-text" itemprop="text">+ <p>Det kan du sagtens – blot justere kogetiden, så den+ passer til :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-122053'+ data-commentid="122053" data-postid="30315"+ data-belowelement="div-comment-122053"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-121859">+ <div id="div-comment-121859" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Maria</strong> skrev:+ </div>+ <div class="comment-date">30. juni 2018 kl. 16:14</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har prøvet opskriften, og retten blev rigtig lækker. Dog endte+ ca. 1/3 af pastaen med at klumpe og klistre sammen, selvom jeg+ synes, at jeg havde rørt rundt, inden låget kom på.<br />+ Jeg brugte pasta lavet af fuldkornsrismel; kan det mon være+ forklaringen, eller kan der have været noget andet i vejen?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-121859'+ data-commentid="121859" data-postid="30315"+ data-belowelement="div-comment-121859" data-respondelement="respond"+ data-replyto="Besvar Maria" aria-label='Besvar Maria'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-122057">+ <div id="div-comment-122057" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. juli 2018 kl. 11:09</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg har ikke prøvet med pasta lavet på rismel, så det skal+ jeg ikke kunne sige … :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-122057'+ data-commentid="122057" data-postid="30315"+ data-belowelement="div-comment-122057"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-130051">+ <div id="div-comment-130051" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Stine</strong> skrev:+ </div>+ <div class="comment-date">22. oktober 2018 kl. 15:13</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man bruge tørret basilikum i stedet for frisk? :-)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-130051'+ data-commentid="130051" data-postid="30315"+ data-belowelement="div-comment-130051" data-respondelement="respond"+ data-replyto="Besvar Stine" aria-label='Besvar Stine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-130104">+ <div id="div-comment-130104" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">23. oktober 2018 kl. 08:41</div>+ <div class="comment-text" itemprop="text">+ <p>Sagtens :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-130104'+ data-commentid="130104" data-postid="30315"+ data-belowelement="div-comment-130104"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-131982">+ <div id="div-comment-131982" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Karin</strong> skrev:+ </div>+ <div class="comment-date">10. november 2018 kl. 17:45</div>+ <div class="comment-text" itemprop="text">+ <p>Vi er her i huset stor fan af denne ret – og ligeledes af+ chorizoen fra Aalbæk. Jeg er dog altid i tvivl om hvorvidt+ “pølseskindet” skal pilles af. Plejer at gøre det, men+ det er ret besværligt. Hvad gør du?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-131982'+ data-commentid="131982" data-postid="30315"+ data-belowelement="div-comment-131982" data-respondelement="respond"+ data-replyto="Besvar Karin" aria-label='Besvar Karin'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-132131">+ <div id="div-comment-132131" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">12. november 2018 kl. 09:49</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Karin,<br />+ Skønt at høre :)<br />+ – jeg piller også skindet af og synes det går okay+ nemt når jeg gør det inden jeg skære stykker ud, med et snit+ langs skindet på begge sider, og så hive pølseskindet+ af.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-132131'+ data-commentid="132131" data-postid="30315"+ data-belowelement="div-comment-132131"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-137543">+ <div id="div-comment-137543" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">LH</strong> skrev:</div>+ <div class="comment-date">30. december 2018 kl. 10:11</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor stor er din gryde – i liter?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-137543'+ data-commentid="137543" data-postid="30315"+ data-belowelement="div-comment-137543" data-respondelement="respond"+ data-replyto="Besvar LH" aria-label='Besvar LH'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-137628">+ <div id="div-comment-137628" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">30. december 2018 kl. 21:08</div>+ <div class="comment-text" itemprop="text">+ <p>Den er 4,2 liter</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-137628'+ data-commentid="137628" data-postid="30315"+ data-belowelement="div-comment-137628"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-139900">+ <div id="div-comment-139900" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Nikita</strong> skrev:+ </div>+ <div class="comment-date">23. januar 2019 kl. 19:45</div>+ <div class="comment-text" itemprop="text">+ <p>Nøj den var god.<br />+ Kæmpe succes ?☺️ Tak for den</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-139900'+ data-commentid="139900" data-postid="30315"+ data-belowelement="div-comment-139900" data-respondelement="respond"+ data-replyto="Besvar Nikita" aria-label='Besvar Nikita'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-140011">+ <div id="div-comment-140011" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">25. januar 2019 kl. 14:15</div>+ <div class="comment-text" itemprop="text">+ <p>SÅ dejligt at høre :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-140011'+ data-commentid="140011" data-postid="30315"+ data-belowelement="div-comment-140011"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-140273">+ <div id="div-comment-140273" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mia</strong> skrev:+ </div>+ <div class="comment-date">28. januar 2019 kl. 13:12</div>+ <div class="comment-text" itemprop="text">+ <p>Er retten stærk?<br />+ Vores datter er udfordret ift. Stærkt mad Vh Mia.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-140273'+ data-commentid="140273" data-postid="30315"+ data-belowelement="div-comment-140273" data-respondelement="respond"+ data-replyto="Besvar Mia" aria-label='Besvar Mia'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2 parent"+ id="comment-140339">+ <div id="div-comment-140339" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. januar 2019 kl. 20:51</div>+ <div class="comment-text" itemprop="text">+ <p>Hvis chiliflagerne er stærke, så kan den godt være lidt stærk+ – så undlad evt dem :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-140339'+ data-commentid="140339" data-postid="30315"+ data-belowelement="div-comment-140339"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-3 parent" id="comment-140349">+ <div id="div-comment-140349" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mia+ Poulsen</strong> skrev:</div>+ <div class="comment-date">28. januar 2019 kl. 20:59</div>+ <div class="comment-text" itemprop="text">+ <p>Ha ha.. ja det fandt vi så ud af..</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-140349' data-commentid="140349"+ data-postid="30315"+ data-belowelement="div-comment-140349"+ data-respondelement="respond"+ data-replyto="Besvar Mia Poulsen"+ aria-label='Besvar Mia Poulsen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-4"+ id="comment-140378">+ <div id="div-comment-140378" class="comment-body"+ itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong>+ skrev:</div>+ <div class="comment-date">29. januar 2019 kl. 10:53+ </div>+ <div class="comment-text" itemprop="text">+ <p>Åh, jeg håber det gik ;)</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-140378'+ data-commentid="140378" data-postid="30315"+ data-belowelement="div-comment-140378"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a>+ </div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-141325">+ <div id="div-comment-141325" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Lise</strong> skrev:+ </div>+ <div class="comment-date">11. februar 2019 kl. 07:58</div>+ <div class="comment-text" itemprop="text">+ <p>Wow – det er smart! Vi er ved at lave nyt køkken og har derfor+ lavet midlertidigt køkken i vores bryggers. Med EN kogeplade og ovn+ (heldigvis). Den ret er jo perfekt til en kogeplade og giver minimum+ opvask. Den skal klart prøves!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-141325'+ data-commentid="141325" data-postid="30315"+ data-belowelement="div-comment-141325" data-respondelement="respond"+ data-replyto="Besvar Lise" aria-label='Besvar Lise'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-141362">+ <div id="div-comment-141362" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">11. februar 2019 kl. 17:54</div>+ <div class="comment-text" itemprop="text">+ <p>Det er jo oplagt at prøve den af, når man som I står lige+ midt i køkkenrenovering og midlertidigt har en+ kogeplade.<br />+ Rigtig god fornøjelse med den :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-141362'+ data-commentid="141362" data-postid="30315"+ data-belowelement="div-comment-141362"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-141878">+ <div id="div-comment-141878" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Elisabeth</strong>+ skrev:</div>+ <div class="comment-date">17. februar 2019 kl. 18:39</div>+ <div class="comment-text" itemprop="text">+ <p>Nøj hvor var det lækkert… selv min yngste på 7 som normalt ikke+ er til mad som er rodet sammen spiste 3 portioner<br />+ det skal prøves igen.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-141878'+ data-commentid="141878" data-postid="30315"+ data-belowelement="div-comment-141878" data-respondelement="respond"+ data-replyto="Besvar Elisabeth"+ aria-label='Besvar Elisabeth'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-141887">+ <div id="div-comment-141887" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">17. februar 2019 kl. 21:07</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det skønt at høre :) Det er jo virkelig dejligt når+ børnene prøver nye retter og er vilde med dem ♡<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-141887'+ data-commentid="141887" data-postid="30315"+ data-belowelement="div-comment-141887"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-147693">+ <div id="div-comment-147693" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Emma</strong> skrev:+ </div>+ <div class="comment-date">29. april 2019 kl. 18:25</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine. Jeg elsker denne opskrift, men synes du fortjener+ al cadeau for denne.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-147693'+ data-commentid="147693" data-postid="30315"+ data-belowelement="div-comment-147693" data-respondelement="respond"+ data-replyto="Besvar Emma" aria-label='Besvar Emma'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-147744">+ <div id="div-comment-147744" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">30. april 2019 kl. 10:10</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Emma,<br />+ Tusind tak – Det er så dejligt at høre :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-147744'+ data-commentid="147744" data-postid="30315"+ data-belowelement="div-comment-147744"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-149074">+ <div id="div-comment-149074" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Signe Draabe+ Bruunsgaard</strong> skrev:</div>+ <div class="comment-date">16. maj 2019 kl. 14:47</div>+ <div class="comment-text" itemprop="text">+ <p>Skal det være spaghetti, eller kan man også bruge andre pastatyper?+ </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-149074'+ data-commentid="149074" data-postid="30315"+ data-belowelement="div-comment-149074" data-respondelement="respond"+ data-replyto="Besvar Signe Draabe Bruunsgaard"+ aria-label='Besvar Signe Draabe Bruunsgaard'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-149128">+ <div id="div-comment-149128" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">17. maj 2019 kl. 12:15</div>+ <div class="comment-text" itemprop="text">+ <p>Det kan sagtens være andre pastatyper :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-149128'+ data-commentid="149128" data-postid="30315"+ data-belowelement="div-comment-149128"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-149259">+ <div id="div-comment-149259" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Astrid</strong> skrev:+ </div>+ <div class="comment-date">19. maj 2019 kl. 07:29</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine,<br />+ Det ser super lækkert og nemt ud! Min familie og jeg er vegetarer,+ og jeg tænkte på, om man kunne udelade chorizoen, uden at det+ ødelægger opskriften?<br />+ Tusind tak for en skøn blog!</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-149259'+ data-commentid="149259" data-postid="30315"+ data-belowelement="div-comment-149259" data-respondelement="respond"+ data-replyto="Besvar Astrid" aria-label='Besvar Astrid'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2 parent"+ id="comment-149264">+ <div id="div-comment-149264" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. maj 2019 kl. 09:57</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Astrid,<br />+ Det kan du fint gøre! Jeg vil anbefale i stedet at komme en+ tsk røget paprika i gryden, for så får du stadig en god+ tilpas krydret smag :)<br />+ God fornøjelse<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-149264'+ data-commentid="149264" data-postid="30315"+ data-belowelement="div-comment-149264"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment odd alt depth-3 parent" id="comment-149280">+ <div id="div-comment-149280" class="comment-body"+ itemscope="itemscope" itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong+ itemprop="name">Astrid</strong> skrev:</div>+ <div class="comment-date">19. maj 2019 kl. 19:15</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg lavede retten til aftensmad, og hele familien var+ vilde med retten! Super, super lækkert! Jeg+ tilføjede paprikaen – lækker smag. Desuden+ puttede jeg champignoner i stedet for chorizo, og+ det blev jo rigtig lækkert!<br />+ Jeg er kun tretten, men det var super nemt og+ overkommeligt at lave!<br />+ Tusind tak for en dejlig opskrift!</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-149280' data-commentid="149280"+ data-postid="30315"+ data-belowelement="div-comment-149280"+ data-respondelement="respond"+ data-replyto="Besvar Astrid"+ aria-label='Besvar Astrid'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-4"+ id="comment-149315">+ <div id="div-comment-149315" class="comment-body"+ itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong>+ skrev:</div>+ <div class="comment-date">20. maj 2019 kl. 10:56+ </div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre – og hvor+ er du sej!!<br />+ Tak for din fine tilbagemelding<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a+ rel='nofollow' class='comment-reply-link'+ href='#comment-149315'+ data-commentid="149315" data-postid="30315"+ data-belowelement="div-comment-149315"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a>+ </div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-152792">+ <div id="div-comment-152792" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Liv</strong> skrev:+ </div>+ <div class="comment-date">9. juli 2019 kl. 19:59</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg ved ikke om det er skrevet tidligere… men jeg har frosset+ den med succes. Frøs alle ingredienser sammen undtagen boullion og+ pasta (mest fordi der ikke var plads i beholderen). Da jeg skulle+ bruge retten tøede jeg den op, tilsatte boullion og pasta og kogte i+ 15 minutter. Det virkede upåklageligt.<br />+ Man må være snarrådig med en nyfødt og én på fire år ?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-152792'+ data-commentid="152792" data-postid="30315"+ data-belowelement="div-comment-152792" data-respondelement="respond"+ data-replyto="Besvar Liv" aria-label='Besvar Liv'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-152839">+ <div id="div-comment-152839" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">10. juli 2019 kl. 09:25</div>+ <div class="comment-text" itemprop="text">+ <p>Så godt at høre! Man kan også fint fryse pastaen med til alle+ onepotpastaretterne, hvilket er selvfølgelig er nemmest hvis+ det er skruer, rør eller lign – jeg har selv gjort det+ da vi tog billedet til min kommende kogebog. Og det+ fungerede upåklageligt og er så nemt.<br />+ Tillykke med den lille ny i familien ♡<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-152839'+ data-commentid="152839" data-postid="30315"+ data-belowelement="div-comment-152839"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-153153">+ <div id="div-comment-153153" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Kathrine Hauge+ Andersen</strong> skrev:</div>+ <div class="comment-date">14. juli 2019 kl. 18:16</div>+ <div class="comment-text" itemprop="text">+ <p>Vi prøvede din ret i dag og den er rigtigt god, lige til og simpel,+ selv vores dreng på snart 11 mdr har spist med stor velbehag :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-153153'+ data-commentid="153153" data-postid="30315"+ data-belowelement="div-comment-153153" data-respondelement="respond"+ data-replyto="Besvar Kathrine Hauge Andersen"+ aria-label='Besvar Kathrine Hauge Andersen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-153162">+ <div id="div-comment-153162" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">14. juli 2019 kl. 20:01</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Kathrine,<br />+ Hvor er det skønt at høre! Tak for din søde hilsen.<br />+ Rigtig skøn sommer til jer :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-153162'+ data-commentid="153162" data-postid="30315"+ data-belowelement="div-comment-153162"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-156986">+ <div id="div-comment-156986" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">S</strong> skrev:</div>+ <div class="comment-date">22. august 2019 kl. 07:59</div>+ <div class="comment-text" itemprop="text">+ <p>Denne ret fortjener en kommentar. Jeg laver den igen og igen og den+ ryger bare ned hos min mand og datter. Fantastisk one pot!</p>+ <p>Kh.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-156986'+ data-commentid="156986" data-postid="30315"+ data-belowelement="div-comment-156986" data-respondelement="respond"+ data-replyto="Besvar S" aria-label='Besvar S'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-157018">+ <div id="div-comment-157018" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">22. august 2019 kl. 16:20</div>+ <div class="comment-text" itemprop="text">+ <p>Så skønt at høre! :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-157018'+ data-commentid="157018" data-postid="30315"+ data-belowelement="div-comment-157018"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-158524">+ <div id="div-comment-158524" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name"><a+ href='http://www.siffstorm.com' rel='external nofollow ugc'+ class='url'>Siff</a></strong> skrev:</div>+ <div class="comment-date">14. september 2019 kl. 21:59</div>+ <div class="comment-text" itemprop="text">+ <p>Den her er virkelig blevet en klassiker hjemme hos os – hurtig,+ nem og perfekt på en travl hverdagsaften til både voksne og børn :-)+ Tak <3</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-158524'+ data-commentid="158524" data-postid="30315"+ data-belowelement="div-comment-158524" data-respondelement="respond"+ data-replyto="Besvar Siff" aria-label='Besvar Siff'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-158567">+ <div id="div-comment-158567" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">15. september 2019 kl. 15:31</div>+ <div class="comment-text" itemprop="text">+ <p>Så skønt at høre :)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-158567'+ data-commentid="158567" data-postid="30315"+ data-belowelement="div-comment-158567"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-159063">+ <div id="div-comment-159063" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Olivia</strong> skrev:+ </div>+ <div class="comment-date">22. september 2019 kl. 19:56</div>+ <div class="comment-text" itemprop="text">+ <p>Sikke en dejlig ret! Jeg lavede den til hele min familie i dag med+ kæmpe succes. Jeg tilføjede peberfrugt, mere tomatsauce og mere+ chorizo, og jeg glæder mig til at prøve andre varianter:)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-159063'+ data-commentid="159063" data-postid="30315"+ data-belowelement="div-comment-159063" data-respondelement="respond"+ data-replyto="Besvar Olivia" aria-label='Besvar Olivia'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-159091">+ <div id="div-comment-159091" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">23. september 2019 kl. 07:59</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre! ♡<br />+ Mange tak for din søde hilsen<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-159091'+ data-commentid="159091" data-postid="30315"+ data-belowelement="div-comment-159091"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-159278">+ <div id="div-comment-159278" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anna Patricia+ Neumeister</strong> skrev:</div>+ <div class="comment-date">25. september 2019 kl. 18:02</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Valdemarsro<br />+ Jeg har prøvet at lave denne One Pot pastaret to gange, men begge+ gange er retten (dvs. pastaerne) simpelthen brændt på i bunden af+ gryden.. ka det have noget at gøre med den gryde du bruger? Jeg har+ været nødt til at tilføje dobbelt så meget vand i retten og skrue+ helt ned på 3.<br />+ Har du et forslag til, hvad jeg gør galt?<br />+ Mvh. Anna</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-159278'+ data-commentid="159278" data-postid="30315"+ data-belowelement="div-comment-159278" data-respondelement="respond"+ data-replyto="Besvar Anna Patricia Neumeister"+ aria-label='Besvar Anna Patricia Neumeister'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-159297">+ <div id="div-comment-159297" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">25. september 2019 kl. 22:49</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Anna<br />+ Sandsynligvis er det blot for høj temperatur der får den til+ at brænde på. Kan også være gryden, men prøv evt bare at+ smøre den, røre et par gange undervejs og sørg for at den+ ikke koger for meget<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-159297'+ data-commentid="159297" data-postid="30315"+ data-belowelement="div-comment-159297"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-164133">+ <div id="div-comment-164133" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Henrik Munck</strong>+ skrev:</div>+ <div class="comment-date">12. november 2019 kl. 13:29</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine,</p>+ <p>Tak for en dejlig opskrift :-)</p>+ <p>Har du et trick til at få skindet af chorizoen, jeg synes at det er+ meget svært at få af ?</p>+ <p>Tak, Henrik</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-164133'+ data-commentid="164133" data-postid="30315"+ data-belowelement="div-comment-164133" data-respondelement="respond"+ data-replyto="Besvar Henrik Munck"+ aria-label='Besvar Henrik Munck'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-164188">+ <div id="div-comment-164188" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">13. november 2019 kl. 10:17</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Henrik<br />+ Jeg skærer et snit på langs og synes det går okay nemt at få+ det af på de fleste chorizoer, men det kan være drilsk og+ hvis der sidder en smule eller hvis det er meget tyndt+ skind, så kan det fint blive siddende.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-164188'+ data-commentid="164188" data-postid="30315"+ data-belowelement="div-comment-164188"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-165978">+ <div id="div-comment-165978" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mollie</strong> skrev:+ </div>+ <div class="comment-date">2. december 2019 kl. 11:04</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man erstatte pasta med grønstagspasta evt squash?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-165978'+ data-commentid="165978" data-postid="30315"+ data-belowelement="div-comment-165978" data-respondelement="respond"+ data-replyto="Besvar Mollie" aria-label='Besvar Mollie'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-165990">+ <div id="div-comment-165990" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. december 2019 kl. 11:34</div>+ <div class="comment-text" itemprop="text">+ <p>Det duer ikke til en ret som denne. Men du kan evt tage+ pastaen fra, koge resten til en sauce og servere til din+ grøntsagsspasta<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-165990'+ data-commentid="165990" data-postid="30315"+ data-belowelement="div-comment-165990"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-171599">+ <div id="div-comment-171599" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Ditte</strong> skrev:+ </div>+ <div class="comment-date">27. januar 2020 kl. 12:18</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine, tror du godt man kan skalere ned og lave til 1-2+ personer, eller kræver det en vis volumen at lave en lækker one pot+ pasta? (Jeg har fået din kogebog af min søster, og er nu ved at+ planlægge resten af årets måltider ;-D)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-171599'+ data-commentid="171599" data-postid="30315"+ data-belowelement="div-comment-171599" data-respondelement="respond"+ data-replyto="Besvar Ditte" aria-label='Besvar Ditte'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-171667">+ <div id="div-comment-171667" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. januar 2020 kl. 08:24</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ditte,<br />+ Den kan sagtens skaleres ned til halv mængde, men så synes+ jeg de bliver bedst med pastaskruer eller penne.<br />+ Hvor dejligt med bogen, jeg håber du bliver glad for den+ :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-171667'+ data-commentid="171667" data-postid="30315"+ data-belowelement="div-comment-171667"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-171622">+ <div id="div-comment-171622" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Amanda</strong> skrev:+ </div>+ <div class="comment-date">27. januar 2020 kl. 18:29</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man gøre alle ingrediserne klar og så fryse det hele ned i en+ pose? Min veninde er lige blevet mor, og jeg tænker, at det var en+ oplagt “pose” at give hende, så hun lynhurtigt kan lave mad.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-171622'+ data-commentid="171622" data-postid="30315"+ data-belowelement="div-comment-171622" data-respondelement="respond"+ data-replyto="Besvar Amanda" aria-label='Besvar Amanda'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-171675">+ <div id="div-comment-171675" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. januar 2020 kl. 08:49</div>+ <div class="comment-text" itemprop="text">+ <p>Ja, det kan du sagtens og det er en super skøn ide.<br />+ Blot kom den tørre boullion i, så der blot skal tilsættes+ vand til gryden.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-171675'+ data-commentid="171675" data-postid="30315"+ data-belowelement="div-comment-171675"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-173033">+ <div id="div-comment-173033" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anne</strong> skrev:+ </div>+ <div class="comment-date">11. februar 2020 kl. 22:53</div>+ <div class="comment-text" itemprop="text">+ <p>Det er sjovt man ikke har tænkt på det før. Det minder mig om paella,+ men jeg har set danske opskrifter på retten hvor folk koger risene+ først og så går ideen jo lidt af det…. men faktisk har Spanien+ også en ret hvor små pasta er kogt a la one pot nede i panden,+ præcis som i en paella.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-173033'+ data-commentid="173033" data-postid="30315"+ data-belowelement="div-comment-173033" data-respondelement="respond"+ data-replyto="Besvar Anne" aria-label='Besvar Anne'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-173503">+ <div id="div-comment-173503" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Dorte Birkmose</strong>+ skrev:</div>+ <div class="comment-date">16. februar 2020 kl. 19:05</div>+ <div class="comment-text" itemprop="text">+ <p>Det er en ualmindelig god ret, som vi vender tilbage til igen og+ igen. Der kan sagtens tilføjes flere grøntsager, idag rød peber. Det+ smager bare SÅ godt. Jeg er bare i tvivl om man kan fryse resten,+ det kan man nok ikke vel ??<br />+ TAK for den bedste side med opskrifter, som jeg følger både her og+ på app.<br />+ Mange hilsner Dorte.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-173503'+ data-commentid="173503" data-postid="30315"+ data-belowelement="div-comment-173503" data-respondelement="respond"+ data-replyto="Besvar Dorte Birkmose"+ aria-label='Besvar Dorte Birkmose'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-173550">+ <div id="div-comment-173550" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">17. februar 2020 kl. 08:09</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Dorte,<br />+ Tusind tak for din søde hilsen, hvor er det dejligt at høre+ og sødt af dig at skrive!<br />+ Jeg tror det bliver kedeligt og pastaen lidt udkogt af at+ blive frosset. Men det kan sagtens fryses før det+ tilberedes, det jeg har testet dog uden at tilsætte vand til+ grøntsagsboullion, det har jeg først gjort ved+ tilberedningen.<br />+ Kærlig hilsen<br />+ Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-173550'+ data-commentid="173550" data-postid="30315"+ data-belowelement="div-comment-173550"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-173847">+ <div id="div-comment-173847" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Michaela Hansen</strong>+ skrev:</div>+ <div class="comment-date">20. februar 2020 kl. 21:25</div>+ <div class="comment-text" itemprop="text">+ <p>Hvilket mærke bouillon bruger du..?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-173847'+ data-commentid="173847" data-postid="30315"+ data-belowelement="div-comment-173847" data-respondelement="respond"+ data-replyto="Besvar Michaela Hansen"+ aria-label='Besvar Michaela Hansen'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-173877">+ <div id="div-comment-173877" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">21. februar 2020 kl. 08:56</div>+ <div class="comment-text" itemprop="text">+ <p>Herbamare er min favorit<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-173877'+ data-commentid="173877" data-postid="30315"+ data-belowelement="div-comment-173877"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-182138">+ <div id="div-comment-182138" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Ditte</strong> skrev:+ </div>+ <div class="comment-date">11. maj 2020 kl. 22:02</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg er begyndt at eksperimentere med at lave hjemmelavet pasta og det+ skal ikke koges så længe. Tror du jeg ville kunne bruge det i denne+ ret? Skal pastaen i så fald senere i og skal der måske også mindre+ væske i? Har du nogle ideer?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182138'+ data-commentid="182138" data-postid="30315"+ data-belowelement="div-comment-182138" data-respondelement="respond"+ data-replyto="Besvar Ditte" aria-label='Besvar Ditte'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-182196">+ <div id="div-comment-182196" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">12. maj 2020 kl. 08:25</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ditte<br />+ jeg oplever ikke one pot pasta fungere så godt til frisk+ pasta.<br />+ Men du kan jo fint koge en sauce ala opskriften her og prøve+ at tilsætte pastaen til allersidst<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182196'+ data-commentid="182196" data-postid="30315"+ data-belowelement="div-comment-182196"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-182359">+ <div id="div-comment-182359" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Birthe Harder</strong>+ skrev:</div>+ <div class="comment-date">13. maj 2020 kl. 19:00</div>+ <div class="comment-text" itemprop="text">+ <p>Har lige lavet One pot pasta, der var til to dage. De smagte helt+ fantastisk og var den hurtigste ret jeg nogen sinde har lavet.<br />+ Fidusen med medisterpølsen var super.<br />+ Tak for dejlig opskrift<br />+ Vh Birthe</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182359'+ data-commentid="182359" data-postid="30315"+ data-belowelement="div-comment-182359" data-respondelement="respond"+ data-replyto="Besvar Birthe Harder"+ aria-label='Besvar Birthe Harder'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-182529">+ <div id="div-comment-182529" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">15. maj 2020 kl. 10:20</div>+ <div class="comment-text" itemprop="text">+ <p>Så skønt at høre!<br />+ Tusind tak for din søde hilsen og fine tilbagemelding på+ opskriften :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182529'+ data-commentid="182529" data-postid="30315"+ data-belowelement="div-comment-182529"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-182423">+ <div id="div-comment-182423" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mie</strong> skrev:+ </div>+ <div class="comment-date">14. maj 2020 kl. 09:11</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg faldt over denne opskrift. Tak for en lækker og simpel opskrift+ både barn og mand kunne lide den </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182423'+ data-commentid="182423" data-postid="30315"+ data-belowelement="div-comment-182423" data-respondelement="respond"+ data-replyto="Besvar Mie" aria-label='Besvar Mie'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-182535">+ <div id="div-comment-182535" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">15. maj 2020 kl. 10:24</div>+ <div class="comment-text" itemprop="text">+ <p>Så skønt at høre!<br />+ Tusind tak for din søde hilsen og fine tilbagemelding på+ opskriften :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182535'+ data-commentid="182535" data-postid="30315"+ data-belowelement="div-comment-182535"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-182821">+ <div id="div-comment-182821" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Amanda</strong> skrev:+ </div>+ <div class="comment-date">19. maj 2020 kl. 13:40</div>+ <div class="comment-text" itemprop="text">+ <p>Kan man lave den med frisk pasta?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182821'+ data-commentid="182821" data-postid="30315"+ data-belowelement="div-comment-182821" data-respondelement="respond"+ data-replyto="Besvar Amanda" aria-label='Besvar Amanda'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-182883">+ <div id="div-comment-182883" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">20. maj 2020 kl. 10:56</div>+ <div class="comment-text" itemprop="text">+ <p>Nej, men du kan evt koge saucen uden pasta og blot tilføje+ den til allersidst.<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-182883'+ data-commentid="182883" data-postid="30315"+ data-belowelement="div-comment-182883"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1" id="comment-186325">+ <div id="div-comment-186325" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Sofie</strong> skrev:+ </div>+ <div class="comment-date">16. juli 2020 kl. 18:54</div>+ <div class="comment-text" itemprop="text">+ <p>Retten smager dejligt!….men…jeg synes det er meget lidt+ væde i forhold til pastaen. Kæmpede lidt med at få kogt al pastaen+ al dente på samme tid. Jeg måtte give retten meget længere da jeg+ efter 15 fandt spagetti som stadig var ukogt.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-186325'+ data-commentid="186325" data-postid="30315"+ data-belowelement="div-comment-186325" data-respondelement="respond"+ data-replyto="Besvar Sofie" aria-label='Besvar Sofie'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-186896">+ <div id="div-comment-186896" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Camilla+ Hesselbjerg</strong> skrev:</div>+ <div class="comment-date">28. juli 2020 kl. 10:31</div>+ <div class="comment-text" itemprop="text">+ <p>Min søn har ønsket retten til sin 16 års fødselsdag i morgen :) men+ vi bliver 14 personer, så jeg er lidt usikker på, om det er til at+ have med at gøre til så mange….. vil jeg blot kunne gange+ retten op med 3 og bruge en stor gryde?</p>+ <p>Vh. Camilla</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-186896'+ data-commentid="186896" data-postid="30315"+ data-belowelement="div-comment-186896" data-respondelement="respond"+ data-replyto="Besvar Camilla Hesselbjerg"+ aria-label='Besvar Camilla Hesselbjerg'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-186943">+ <div id="div-comment-186943" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">28. juli 2020 kl. 14:25</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Camilla,<br />+ Det kan du sagtens gøre, så skal du blot røre den jævnligt+ undervejs mens den koger op.<br />+ God fornøjelse og tillykke med fødselaren :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-186943'+ data-commentid="186943" data-postid="30315"+ data-belowelement="div-comment-186943"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-187483">+ <div id="div-comment-187483" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Monique</strong> skrev:+ </div>+ <div class="comment-date">3. august 2020 kl. 12:41</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg elsker så mange af dine retter, men denne her har bare en særlig+ plads i mit hjerte! Så nemt og lækkert :)<br />+ Har blot et enkelt spørgsmål – hvis man forbereder alle+ ingredienserne og kommer dem i fryseren, skal det så have tid til at+ tø op, eller kan man komme det direkte i gryden med vand?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-187483'+ data-commentid="187483" data-postid="30315"+ data-belowelement="div-comment-187483" data-respondelement="respond"+ data-replyto="Besvar Monique" aria-label='Besvar Monique'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-187619">+ <div id="div-comment-187619" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">4. august 2020 kl. 21:35</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Monique<br />+ Hvor er det dejligt at høre du har glæde af og synes godt om+ mine opskrifter – det er jeg glad for!<br />+ Når jeg har lavet one pot pasta, så har jeg blot ladet det+ tø en 30 minutters tid på køkkenbordet i gryden og derefter+ hældt vand på og kogt op.<br />+ Mange tak for din søde hilsen.<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-187619'+ data-commentid="187619" data-postid="30315"+ data-belowelement="div-comment-187619"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-188812">+ <div id="div-comment-188812" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Søs</strong> skrev:+ </div>+ <div class="comment-date">18. august 2020 kl. 20:25</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Ann-Christine,<br />+ Vi har netop prøvet denne one pot pasta, og den var bare super god.+ Den er straks kommet på “det skal vi helt sikkert lave+ igen-listen.” Utrolig nem og fuld af smag. Tak for endnu en+ god opskrift </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-188812'+ data-commentid="188812" data-postid="30315"+ data-belowelement="div-comment-188812" data-respondelement="respond"+ data-replyto="Besvar Søs" aria-label='Besvar Søs'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-188892">+ <div id="div-comment-188892" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">19. august 2020 kl. 17:20</div>+ <div class="comment-text" itemprop="text">+ <p>Så dejligt! Mange tak for din fine tilbagemelding på+ opskriften, det er dejligt at høre :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-188892'+ data-commentid="188892" data-postid="30315"+ data-belowelement="div-comment-188892"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1 parent" id="comment-191428">+ <div id="div-comment-191428" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Michelle</strong> skrev:+ </div>+ <div class="comment-date">17. september 2020 kl. 14:52</div>+ <div class="comment-text" itemprop="text">+ <p>Hvad er kalorier ca for 100 gram</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-191428'+ data-commentid="191428" data-postid="30315"+ data-belowelement="div-comment-191428" data-respondelement="respond"+ data-replyto="Besvar Michelle" aria-label='Besvar Michelle'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-191515">+ <div id="div-comment-191515" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">18. september 2020 kl. 11:28</div>+ <div class="comment-text" itemprop="text">+ <p>Med Valdemarsro Premium: <a+ href="https://www.valdemarsro.dk/valdemarsro-premium/"+ rel="nofollow ugc">https://www.valdemarsro.dk/valdemarsro-premium/</a>+ kan du se ernæringsberegning på alle opskrifter :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-191515'+ data-commentid="191515" data-postid="30315"+ data-belowelement="div-comment-191515"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-odd thread-alt depth-1 parent"+ id="comment-192651">+ <div id="div-comment-192651" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Anita</strong> skrev:+ </div>+ <div class="comment-date">1. oktober 2020 kl. 23:15</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor mange liter er din Le Creuset gryde?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-192651'+ data-commentid="192651" data-postid="30315"+ data-belowelement="div-comment-192651" data-respondelement="respond"+ data-replyto="Besvar Anita" aria-label='Besvar Anita'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor even depth-2"+ id="comment-192683">+ <div id="div-comment-192683" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">2. oktober 2020 kl. 08:04</div>+ <div class="comment-text" itemprop="text">+ <p>Den er 4,2 liter :)<br />+ Kh AC</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-192683'+ data-commentid="192683" data-postid="30315"+ data-belowelement="div-comment-192683"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment odd alt thread-even depth-1" id="comment-195282">+ <div id="div-comment-195282" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Jesper</strong> skrev:+ </div>+ <div class="comment-date">9. november 2020 kl. 23:24</div>+ <div class="comment-text" itemprop="text">+ <p>Jeg er ikke så god til one pot – synes ikke rigtig jeg kan få+ pastaen kogt uden at der er for meget væde. Så jeg snyder altid. Og+ koger min pasta ved siden af.</p>+ <p>Denne her opskrift er mega simpel. Jeg dropper de fem dl bouillon.+ Starter op med at koger frisk pasta i en anden gryde, mens jeg+ skærer pølse, tomat og løg.</p>+ <p>Til sidst vælter jeg pastaen over i gryden med sauce og serverer det.+ – det har altid været et hit og en af de retter man håber der+ er rester af. </p>+ <p>Det er virkelig en af de letteste favorit</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-195282'+ data-commentid="195282" data-postid="30315"+ data-belowelement="div-comment-195282" data-respondelement="respond"+ data-replyto="Besvar Jesper" aria-label='Besvar Jesper'>Svar</a>+ </div>+ </div>+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-202108">+ <div id="div-comment-202108" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">René</strong> skrev:+ </div>+ <div class="comment-date">9. marts 2021 kl. 07:28</div>+ <div class="comment-text" itemprop="text">+ <p>Var lidt nervøs for at der var for meget tomat i retten, så det bare+ kom til at smage af tomat. Men hold da op den her ret smager helt+ fantastisk! Nemt og lækkert. Tak for den Ann-Christine.</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-202108'+ data-commentid="202108" data-postid="30315"+ data-belowelement="div-comment-202108" data-respondelement="respond"+ data-replyto="Besvar René" aria-label='Besvar René'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-202139">+ <div id="div-comment-202139" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">9. marts 2021 kl. 17:26</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre.<br />+ Tusind tak for din fine hilsen og tilbagemelding på+ opskriften :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-202139'+ data-commentid="202139" data-postid="30315"+ data-belowelement="div-comment-202139"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-204457">+ <div id="div-comment-204457" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Kristian og+ Anne</strong> skrev:</div>+ <div class="comment-date">1. maj 2021 kl. 20:36</div>+ <div class="comment-text" itemprop="text">+ <p>Pastaen blev lækker og cremet til vores overraskelse. Retten får et+ stort 5-tal</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-204457'+ data-commentid="204457" data-postid="30315"+ data-belowelement="div-comment-204457" data-respondelement="respond"+ data-replyto="Besvar Kristian og Anne"+ aria-label='Besvar Kristian og Anne'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-204508">+ <div id="div-comment-204508" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. maj 2021 kl. 09:27</div>+ <div class="comment-text" itemprop="text">+ <p>Hvor er det dejligt at høre! Mange tak for jeres skønne+ tilbagemelding på opskriften.<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-204508'+ data-commentid="204508" data-postid="30315"+ data-belowelement="div-comment-204508"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-207592">+ <div id="div-comment-207592" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mette</strong> skrev:+ </div>+ <div class="comment-date">12. juli 2021 kl. 12:02</div>+ <div class="comment-text" itemprop="text">+ <p>Hej, det ser virkelig lækker og nemt ud ;-) Men er kalorieindholdet i+ denne og andre retter med pasta/ris beregnet efter kogt eller ukogt+ pasta?</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-207592'+ data-commentid="207592" data-postid="30315"+ data-belowelement="div-comment-207592" data-respondelement="respond"+ data-replyto="Besvar Mette" aria-label='Besvar Mette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-207660">+ <div id="div-comment-207660" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">14. juli 2021 kl. 06:53</div>+ <div class="comment-text" itemprop="text">+ <p>Det har jeg lige undersøgt nærmere med Martin og det er vist+ med ukogt pasta<br />+ – men jeg tjekker lige for at være sikker<br />+ Kh Ann-Christine</p>+ <p>P.S nu har jeg lige fulgt op på den og næringsindholdet er+ beregnet på den færdigtilberedte ret, så når der bruges fx+ 100 g ukogt pasta i ingredienslisten til en person, så får+ man mere pasta på sin tallerken i den færdigtilberedte ret+ og det det næringsindhold der er angivet er så med den+ færdigtilberedte ret </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-207660'+ data-commentid="207660" data-postid="30315"+ data-belowelement="div-comment-207660"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-207990">+ <div id="div-comment-207990" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Jette</strong> skrev:+ </div>+ <div class="comment-date">20. juli 2021 kl. 20:03</div>+ <div class="comment-text" itemprop="text">+ <p>Vi er total fan af one pot pasta her hjemme!! Den er nu afprøvet på+ vores sejlbåd, hvor vi holder sommerferie. Det kan VIRKELIG+ anbefales!! Smart madlavning når man ikke har så meget plads. 😊</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-207990'+ data-commentid="207990" data-postid="30315"+ data-belowelement="div-comment-207990" data-respondelement="respond"+ data-replyto="Besvar Jette" aria-label='Besvar Jette'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-208106">+ <div id="div-comment-208106" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">23. juli 2021 kl. 10:55</div>+ <div class="comment-text" itemprop="text">+ <p>Det lyder så hyggeligt! Tak for din søde hilsen og+ tilbagmelding på opskriften<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-208106'+ data-commentid="208106" data-postid="30315"+ data-belowelement="div-comment-208106"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-209712">+ <div id="div-comment-209712" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Katrine</strong> skrev:+ </div>+ <div class="comment-date">31. august 2021 kl. 17:49</div>+ <div class="comment-text" itemprop="text">+ <p>Super dejlig og nem ret. Ville dog have ønsket at der stod i+ opskriften at den skal koges med låg </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-209712'+ data-commentid="209712" data-postid="30315"+ data-belowelement="div-comment-209712" data-respondelement="respond"+ data-replyto="Besvar Katrine" aria-label='Besvar Katrine'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-209843">+ <div id="div-comment-209843" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. september 2021 kl. 08:16</div>+ <div class="comment-text" itemprop="text">+ <p>Dejligt at høre!<br />+ – og ja, det var mystisk, for det synes jeg også jeg+ havde skrevet – men det er uanset med igen nu, at der+ skal låg på og det er også med på mine andre one pot retter+ :)<br />+ God weekend<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-209843'+ data-commentid="209843" data-postid="30315"+ data-belowelement="div-comment-209843"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-even depth-1 parent" id="comment-212474">+ <div id="div-comment-212474" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Jesper Navne</strong>+ skrev:</div>+ <div class="comment-date">31. oktober 2021 kl. 19:46</div>+ <div class="comment-text" itemprop="text">+ <p>Tak for lækker mad ( igen) . </p>+ <p>vi brugte 3/4 liter vand og en hel pose pasta i stedet for at have en+ lille sjat pasta stående bagefter. </p>+ <p>Så er der ( til 2 personer ) også nemme rester til i morgen, ved bare+ at hælde en god sjat vand eller lidt bouillonvand i gryden inden den+ går på køl, så det kan trække til en måske endnu bedre sovs i+ morgen)</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-212474'+ data-commentid="212474" data-postid="30315"+ data-belowelement="div-comment-212474" data-respondelement="respond"+ data-replyto="Besvar Jesper Navne"+ aria-label='Besvar Jesper Navne'>Svar</a></div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-212601">+ <div id="div-comment-212601" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">3. november 2021 kl. 08:49</div>+ <div class="comment-text" itemprop="text">+ <p>Mange tak for din fine hilsen og tilbagemelding :)<br />+ Kærlig hilsen<br />+ Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-212601'+ data-commentid="212601" data-postid="30315"+ data-belowelement="div-comment-212601"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-224871">+ <div id="div-comment-224871" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="comment-author"><strong itemprop="name">Mollie</strong> skrev:+ </div>+ <div class="comment-date">21. august 2022 kl. 10:37</div>+ <div class="comment-text" itemprop="text">+ <p>Hej. Mega lækker opskrift! ❤️ Men et enkelt spørgsmål. Din udregning+ med kalorier på retten er helt off i forhold til min udregning.+ Retten siger 100 gram pasta per person, hvilket jeg går ud fra er+ ukogt. Det giver 360 kalorier, bare for pastaen? Og i din udregning+ er det 325 kcal i alt for hele retten? </p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-224871'+ data-commentid="224871" data-postid="30315"+ data-belowelement="div-comment-224871" data-respondelement="respond"+ data-replyto="Besvar Mollie" aria-label='Besvar Mollie'>Svar</a>+ </div>+ </div>+ <ul class="children">+ <li class="comment byuser comment-author-ann-christine bypostauthor odd alt depth-2"+ id="comment-224876">+ <div id="div-comment-224876" class="comment-body" itemscope="itemscope"+ itemtype="http://schema.org/Comment">+ <div class="ac"></div>+ <div class="comment-author"><strong+ itemprop="name">Ann-Christine</strong> skrev:</div>+ <div class="comment-date">21. august 2022 kl. 12:38</div>+ <div class="comment-text" itemprop="text">+ <p>Hej Mollie<br />+ Mange tak – også en stor favorit herhjemme :)<br />+ Det er den rå pasta der er beregnet på. Jeg har beregnet+ 556,74 kcal pr person for opskriften, det står der også når+ jeg er logget ind både her og i appen.<br />+ Jeg kan ikke selv genskabe de 325 kcal som du skriver for+ retten, hvor ser du det tal?<br />+ Du må meget gerne sende en mail til <a+ href="mailto:[email protected]">[email protected]</a>+ med skærmprint :)<br />+ Kh Ann-Christine</p>+ </div>+ <div class="reply"><span class="line"></span><a rel='nofollow'+ class='comment-reply-link' href='#comment-224876'+ data-commentid="224876" data-postid="30315"+ data-belowelement="div-comment-224876"+ data-respondelement="respond"+ data-replyto="Besvar Ann-Christine"+ aria-label='Besvar Ann-Christine'>Svar</a></div>+ </div>+ </li><!-- #comment-## -->+ </ul><!-- .children -->+ </li><!-- #comment-## -->+ </ul>+ </div>+ <!--<div id="ccph-mobil3_banner" data-ccph-cu="[[0,18945],[768,0]]" style="margin: 0 auto;"></div>-->+ <div id="adn-00000000000bae84" style="display:none;" class="vroad vroadmob"></div>+ <!--<div id="cncpt-mob3"></div> -->+ <div id="adn-00000000000bae83" style="display:none;" class="vroad vroadmob"></div>+ <div id="cncpt-mob2"></div>++ <div class="comment-form-title">Skriv en kommentar</div>+ <div class="comment-faq">+ <strong>Har du spørgsmål til opskriften, kan du finde de fleste svar her:</strong>+ <a href="/ofte-stillede-spoergsmaal-til-valdemarsro-opskrifter/">Oftest stillede+ spørgsmål til Valdemarsro opskrifter >></a>+ </div>+ <div id="respond">+ <a rel="nofollow" id="cancel-comment-reply-link" href="/one-pot-pasta/#respond"+ style="display:none;">Annuller svar</a>+ <form action="/wp-comments-post.php" method="post" onsubmit="_track_comment();">+ <div class="input-wrapper">+ <div class="input">+ <textarea name="comment" id="comment" class="textarea"+ placeholder="Skriv din kommentar her"></textarea>+ </div>+ </div>+ <div class="input-row-wrapper">+ <div class="input-wrapper">+ <div class="input">+ <input class="text" type="text" value="" id="name" name="author"+ placeholder="Navn *" />+ </div>+ </div>+ <div class="input-wrapper">+ <div class="input">+ <input class="text" type="text" value="" id="email" name="email"+ placeholder="E-mail *" />+ </div>+ </div>+ <div class="input-wrapper">+ <div class="input">+ <input class="text" type="text" value="" id="url" name="url"+ placeholder="Website" />+ </div>+ </div>+ <div class="clear"></div>+ <p style="margin-top:5px;font-size:12px;">Din emailadresse vil ikke blive+ offentliggjort.</p>+ </div>+ <button type="submit" name="submit" id="commentsubmit"+ class="submit"><span>Send</span></button>+ <br />++ <br /><br />+ <input type='hidden' name='comment_post_ID' value='30315' id='comment_post_ID' />+ <input type='hidden' name='comment_parent' id='comment_parent' value='0' />+ <p style="display: none;"><input type="hidden" id="akismet_comment_nonce"+ name="akismet_comment_nonce" value="2a48745b2d" /></p>+ <p style="display: none !important;"><label>Δ<textarea name="ak_hp_textarea"+ cols="45" rows="8" maxlength="100"></textarea></label><input+ type="hidden" id="ak_js_1" name="ak_js" value="144" />+ <script>document.getElementById("ak_js_1").setAttribute("value", (new Date()).getTime());</script>+ </p>+ </form>+ <div class="clear"></div>+ </div>+ <script>+ function _track_comment() {+ dataLayer.push({+ event: 'comment',+ url_path: 'https://www.valdemarsro.dk/one-pot-pasta/'+ });++ return true;+ }+ </script>+ </div>+ </div>+ <div class="col sidebar">+ <div id="text-23" class="widget widget_text">+ <div class="textwidget">+ <div class="widget-om">+ <div class="image"><img src="/wp-content/2020/06/valdemarsro_.png"+ alt="Ann Christine Hellerup Brandt" width="310" height="390" /></div>+ <p>Jeg hedder Ann-Christine, er mor til Julie og Johan og er gift med Martin. <br />+ Jeg elsker at udvikle og finde på lækre og velsmagende opskrifter, som jeg deler+ med jer her på Valdemarsro, i mine kogebøger og i <a+ href="https://www.valdemarsro.dk/madplan/">Valdemarsro madplaner</a></p>+ <p>Det er mig, der tager billederne til Valdemarsro og så deler jeg indimellem også+ boganbefalinger, tips til havearbejde og indlæg om min have, rejseguides fra+ vores rejser og andre små skønne ting. Hvis du har lyst kan du læse mere <a+ href="https://www.valdemarsro.dk/ann-christine-hellerup-brandt/">Om+ Valdemarsro her ...</a></p>+ </div>+ + + </div>+ </div>+ <div id="text-102" class="widget widget_text">+ <div class="textwidget">+ <div id="cncpt-rec1"></div>+ </div>+ </div>+ <div id="text-127" class="widget widget_text">+ <div class="textwidget">+ <!--<div id="cncpt-rec2"></div>-->+ </div>+ </div>+ <div id="block-3" class="widget widget_block"></div>+ <div id="custom_html-6" class="widget_text widget widget_custom_html">+ <div class="textwidget custom-html-widget">+ ++ ++ </div>+ </div>+ <div id="text-129" class="widget widget_text">+ <div class="textwidget">+ </p>+ <div id="sidebarwidget_1" class="widget-om">+ <div class="image" style="margin-top: 0;"><a+ href="https://www.valdemarsro.dk/madplan/"><img decoding="async"+ loading="lazy" class="alignnone"+ src="/wp-content/2020/09/Valdemarsro_premium_2.png"+ alt="Valdemarsro Madplan" width="400" height="273" /></a></div>+ <p><b>MADPLAN FRA VALDEMARSRO</b></p>+ <ul>+ <li>Nye lækre madplaner hver uge</li>+ <li>Smart og tidssparende indkøbsseddel</li>+ <li>Din helt egen favoritside her på Valdemarsro</li>+ <li>Slip for reklame og annoncer</li>+ <li>Adgang både i app og på hjemmesiden</li>+ </ul>+ <p><a href="/madplan/">Få Valdemarsro madplaner her >></a></p>+ </div>+ <p>+ <script>+ document.addEventListener('DOMContentLoaded', (event) => {+ _promotion_view('sidebarwidget_1', '');+ </script><br />++ </div>+ </div>+ <div id="custom_html-11" class="widget_text widget widget_custom_html">+ <div class="textwidget custom-html-widget">+ <div class="banner-vertical-1"+ onclick="document.location='https://www.valdemarsro.dk/kogebog-valdemarsro-kager-desserter/';"+ style="cursor:pointer;">+ <div class="leaf"></div>+ <div class="bg">+ <img src="https://www.valdemarsro.dk/wp-content/2022/04/Valdemarsro_kager-og-desserter_banner.jpg"+ width="1000" height="1399" />+ <div class="image"+ style="background-image:url(https://www.valdemarsro.dk/wp-content/2022/04/Valdemarsro_kager-og-desserter_banner.jpg);">+ <img src="https://www.valdemarsro.dk/wp-content/2022/04/Valdemarsro_kager-og-desserter_banner.jpg"+ width="1000" height="1399" />+ <span><a>Køb kogebogen her</a></span>+ </div>+ </div>+ </div>+ </div>+ </div>+ <div id="mc4wp_form_widget-4" class="widget widget_mc4wp_form_widget">+ <h3 class="widget-title">Tilmeld dig Valdemarsro nyhedsbrev</h3>+ <script>(function () {+ window.mc4wp = window.mc4wp || {+ listeners: [],+ forms: {+ on: function (evt, cb) {+ window.mc4wp.listeners.push(+ {+ event: evt,+ callback: cb+ }+ );+ }+ }+ }+ })();+ </script><!-- Mailchimp for WordPress v4.8.11 - https://wordpress.org/plugins/mailchimp-for-wp/ -->+ <form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-23617" method="post" data-id="23617"+ data-name="Default sign-up form">+ <div class="mc4wp-form-fields"><input type="email" name="EMAIL" placeholder="Email"+ required="required" id="mc_email" />+ <input type="submit" value="Tilmeld" id="mc_submit" />+ <p style="font-size:14px;margin:10px 0;line-height:1.3;">+ <br />Ugentligt inspiration til sæsonaktuelle opskrifter.+ </p>+ <p style="font-size:10px;margin-bottom:20px;line-height:1.3;">+ Samtykke til at modtage nyhedsbrevet kan til enhver tid trækkes tilbage, <a+ href="/personoplysninger-og-cookie-politik/"+ style="text-decoration:underline;">læs mere her</a>+ </p>+ </div><label style="display: none !important;">Leave this field empty if you're human:+ <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1"+ autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp"+ value="1667938878" /><input type="hidden" name="_mc4wp_form_id"+ value="23617" /><input type="hidden" name="_mc4wp_form_element_id"+ value="mc4wp-form-1" />+ <div class="mc4wp-response"></div>+ </form><!-- / Mailchimp for WordPress Plugin -->+ </div>+ <div id="custom_html-9" class="widget_text widget widget_custom_html">+ <div class="textwidget custom-html-widget">+ <!--<div id="cncpt-mob4"></div>-->+ </div>+ </div>+ <div id="custom_html-12" class="widget_text widget widget_custom_html">+ <div class="textwidget custom-html-widget">+ <div class="banner-vertical-1"+ onclick="document.location='https://www.valdemarsro.dk/kogeboeger/';"+ style="cursor:pointer;">+ <div class="leaf"></div>+ <div class="bg">+ <img src="https://www.valdemarsro.dk/wp-content/2022/09/kogeboeger-valdemarsro-1.jpg"+ width="452" height="566" />+ <div class="image"+ style="background-image:url(https://www.valdemarsro.dk/wp-content/2022/09/kogeboeger-valdemarsro-1.jpg);">+ <img src="https://www.valdemarsro.dk/wp-content/2022/09/kogeboeger-valdemarsro-1.jpg"+ width="452" height="566" />+ <span><a>SE ALLE KOGEBØGER HER</a></span>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ <script>+ window.addEventListener('DOMContentLoaded', (event) => {+ var canHover = !(matchMedia('(hover: none)').matches);+ var pid = 1;+ $('div[itemprop="recipeInstructions"] p').each(function () {+ $(this).attr('data-pid', pid);++ if (canHover)+ $(this).addClass('can-hover');++ if (typeof (Storage) !== 'undefined') {+ if (sessionStorage.getItem('recipe_30315_pid_' + $(this).data('pid')) != null)+ $(this).addClass('done');+ }++ $(this).click(function () {+ $(this).toggleClass('done');++ if (typeof (Storage) !== 'undefined') {+ if ($(this).hasClass('done'))+ sessionStorage.setItem('recipe_30315_pid_' + $(this).data('pid'), '1');+ else+ sessionStorage.removeItem('recipe_30315_pid_' + $(this).data('pid'));+ }+ });++ pid++;+ });++ var iid = 1;+ $('li[itemprop="recipeIngredient"]').each(function () {+ $(this).attr('data-iid', iid);++ if (canHover)+ $(this).addClass('can-hover');++ if (typeof (Storage) !== 'undefined') {+ if (sessionStorage.getItem('recipe_30315_iid_' + $(this).data('iid')) != null)+ $(this).addClass('done');+ }++ $(this).click(function () {+ $(this).toggleClass('done');++ if (typeof (Storage) !== 'undefined') {+ if ($(this).hasClass('done'))+ sessionStorage.setItem('recipe_30315_iid_' + $(this).data('iid'), '1');+ else+ sessionStorage.removeItem('recipe_30315_iid_' + $(this).data('iid'));+ }+ });++ iid++;+ });+ });+ </script>+ <style>+ div[itemprop="recipeInstructions"]>p.can-hover:hover,+ div[itemprop="recipeInstructions"]>p.done,+ li[itemprop="recipeIngredient"].can-hover:hover,+ li[itemprop="recipeIngredient"].done {+ text-decoration: line-through;+ cursor: pointer;+ opacity: .75;+ }+ </style>+ <div id="amount-modal" class="modal">+ <div class="modal-wrapper">+ <div class="modal-window">+ <span class="modal-close" onclick="$(this).parents('.modal').fadeOut();">×</span>+ <div class="modal-content modal-text">+ <form method="get">+ <div class="modal-title">Vælg antal</div>+ <div id="amount-pers">+ <select name="antal" id="amount">+ <option value="1">1 pers.</option>+ <option value="2">2 pers.</option>+ <option value="3">3 pers.</option>+ <option value="4">4 pers.</option>+ <option value="5">5 pers.</option>+ <option value="6">6 pers.</option>+ <option value="7">7 pers.</option>+ <option value="8">8 pers.</option>+ <option value="9">9 pers.</option>+ <option value="10">10 pers.</option>+ <option value="12">12 pers.</option>+ <option value="14">14 pers.</option>+ <option value="16">16 pers.</option>+ <option value="18">18 pers.</option>+ <option value="20">20 pers.</option>+ </select>+ </div>+ <div id="amount-other">+ <select name="antal" id="amount"></select>+ </div>+ <button type="submit">OK</button>+ </form>+ </div>+ </div>+ </div>+ </div>+ <script>+ function _open_modal_wrapper(id, val, unit, default_val) {+ $('#amount-modal').find('#id').val(id);++ if (unit == 'pers.') {+ $('#amount-modal #amount-other').hide();+ $('#amount-modal #amount-pers').show();+ }+ else {+ $('#amount-modal #amount-other #amount option').remove();++ var v = Math.round((default_val / 2) * 100) / 100;++ //if(default_val > 1)+ $('#amount-modal #amount-other #amount').append('<option value="' + v + '">' + v + '</option>');+ //else+ // $('#amount-modal #amount-other #amount').append('<option value="' + (default_val * i) + '">' + (default_val * i) + '</option>');++ for (var i = 1; i <= 4; i++) {+ v = Math.round((default_val * i) * 100) / 100;+ $('#amount-modal #amount-other #amount').append('<option value="' + v + '">' + v + '</option>');+ }++ $('#amount-modal #amount-pers').hide();+ $('#amount-modal #amount-other').show();+ }++ $('#amount-modal').find('#amount').each(function () {+ $(this).val(val);+ });++ _open_modal('amount-modal');+ }+ </script>+ <footer role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter">+ <div class="footer-newsletter">+ <p>Tilmeld dig Valdemarsro nyhedsbrev</p>++ <script>(function () {+ window.mc4wp = window.mc4wp || {+ listeners: [],+ forms: {+ on: function (evt, cb) {+ window.mc4wp.listeners.push(+ {+ event: evt,+ callback: cb+ }+ );+ }+ }+ }+ })();+ </script><!-- Mailchimp for WordPress v4.8.11 - https://wordpress.org/plugins/mailchimp-for-wp/ -->+ <form id="mc4wp-form-2" class="mc4wp-form mc4wp-form-23617" method="post" data-id="23617"+ data-name="Default sign-up form">+ <div class="mc4wp-form-fields"><input type="email" name="EMAIL" placeholder="Email"+ required="required" id="mc_email" />+ <input type="submit" value="Tilmeld" id="mc_submit" />+ <p style="font-size:14px;margin:10px 0;line-height:1.3;">+ <br />Ugentligt inspiration til sæsonaktuelle opskrifter.+ </p>+ <p style="font-size:10px;margin-bottom:20px;line-height:1.3;">+ Samtykke til at modtage nyhedsbrevet kan til enhver tid trækkes tilbage, <a+ href="/personoplysninger-og-cookie-politik/" style="text-decoration:underline;">læs+ mere her</a>+ </p>+ </div><label style="display: none !important;">Leave this field empty if you're human: <input+ type="text" name="_mc4wp_honeypot" value="" tabindex="-1"+ autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp"+ value="1667938878" /><input type="hidden" name="_mc4wp_form_id" value="23617" /><input+ type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-2" />+ <div class="mc4wp-response"></div>+ </form><!-- / Mailchimp for WordPress Plugin -->+ </div>+ <div class="footer-logo">+ <img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/logo4.png"+ width="45" height="35" alt="Valdemarsro" />+ </div>+ <div class="footer-sm">+ <a class="sm in" href="https://www.instagram.com/valdemarsro_dk/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/instagram1.png"+ width="15" height="15" /></a>+ <a class="sm fb" href="https://www.facebook.com/Valdemarsro/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/facebook1.png"+ width="8" height="15" /></a>+ <a class="sm yt" href="https://www.youtube.com/user/valdemarsr0?sub_confirmation=1"+ target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/youtube1.png"+ width="20" height="15" /></a>+ <a class="sm pi" href="https://dk.pinterest.com/valdemarsro/" target="_blank"><img+ src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/pinterest1.png"+ width="11" height="15" /></a>+ </div>+ <div class="footer-links">+ <a href="/handels-betingelser-valdemarsro-premium/">Handelsbetingelser</a>+ <a href="/personoplysninger-og-cookie-politik/">Personoplysninger og cookies</a>+ <a href="/job-hos-valdemarsro/">Job hos Valdemarsro</a>+ <a href="/kontakt/">Kontakt</a>+ </div>+ <!--<div class="premium-support">+ <a href="/support/"><i class="fas fa-life-ring"></i> Support</a>+ </div>-->+ </footer>+ <!--<div id="footer" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter">+ <div class="row clear-after" id="footer-logo">+ <div class="col span_10 col-center">+ <img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/logo4.png" width="178" height="139" alt="Valdemarsro"/>+ </div>+ </div>+ <div class="row clear-after" id="footer-cols">+ <div class="col span_3 push_1" id="footer-col-1">+ <ul class="menu" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation">+ <li><a href="/bagved-valdemarsrodk/">Om Valdemarsro / kontakt</a></li>+ <li><a href="http://shop.valdemarsro.dk">Valdemarsro Shop</a></li>+ <li><a href="/faq/">FAQ</a></li>+ <li><a href="/nyhedsbrev/">Nyhedsbrev</a></li>+ </ul>+ </div>+ <div class="col span_2" id="footer-col-2">+ <ul class="menu" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation">+ <li><a href="/opskriftsoversigt/">Opskrifter</a></li>+ <li><a href="/category/livsstil/">Livsstil</a></li>+ <li><a href="/category/diy/">Do it yourself</a></li>+ <li><a href="/rejser/">Rejser</a></li>+ </ul>+ </div>+ <div class="col span_2" id="footer-col-3">+ <ul class="menu" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation">+ <li><a href="/presse/">Presse</a></li>+ <li><a href="/samarbejde-og-annoncering/">Annoncering</a></li>+ <li><a href="/personoplysninger-og-cookie-politik/">Cookiepolitik</a></li>+ </ul>+ </div>+ <div class="col span_4" id="footer-col-4">+ <a href="https://www.facebook.com/Valdemarsro/" class="svg"></a>+ <a href="https://www.instagram.com/valdemarsro_dk/" class="svg"></a>+ <a href="https://www.youtube.com/user/valdemarsr0?sub_confirmation=1" class="svg"></a>+ <a href="https://dk.pinterest.com/valdemarsro/" class="svg"></a>+ <a href="https://www.bloglovin.com/blogs/valdemarsro-1709049" class="svg"></a>+ </div>+ </div>+ </div>-->+ </div>+ </div>+ <div id="login-modal" class="modal">+ <div class="modal-wrapper">+ <div class="modal-window">+ <span class="modal-close" onclick="$(this).parents('.modal').fadeOut();">×</span>+ <div class="modal-content modal-text">+ <img src="https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/img/gryde.png"+ alt="Valdemarsro Premium" width="56" height="44" />+ <h3>Valdemarsro Premium</h3>+ <p>Har du ikke Premium?</p>+ <button class="button cta"><a href="/premium/opret/"><i class="fas fa-star"></i> Få+ Premium</a></button>+ </div>+ <div class="modal-form">+ <!--<div class="modal-tabs">+ <div class="modal-tab active" onclick="_switch_modal_tab(1, this);">Log på</div>+ <div class="modal-tab" onclick="_switch_modal_tab(2, this);">Glemt password?</div>+ <div class="modal-tab" onclick="_switch_modal_tab(3, this);">Opret Premium</div>+ </div>-->+ <div class="modal-content modal-tab-content active" id="modal-tab-1">+ <form onsubmit="return _try_logon(this);">+ <p class="modal-field">+ <input type="email" id="login-email" placeholder="Email" />+ </p>+ <p class="modal-field">+ <input type="password" id="login-pwd" placeholder="Adgangskode" />+ </p>+ <button type="submit">Log på</button>+ </form>+ <div id="login-msg" class="modal-form-message"></div>+ <a href="#" class="modal-form-helper-link" onclick="return _switch_modal_tab(2, this);">Glemt+ adgangskode?</a>+ </div>+ <div class="modal-content modal-tab-content" id="modal-tab-2">+ <p class="modal-hint">Indtast din email, så sender vi dig et link hvor du kan ændre dit+ password.</p>+ <form onsubmit="return _try_forgot(this);">+ <p class="modal-field">+ <input type="email" id="forgot-email" placeholder="Email" />+ </p>+ <button type="submit">Send link</button>+ </form>+ <div id="forgot-msg" class="modal-form-message"></div>+ <a href="#" class="modal-form-helper-link" onclick="return _switch_modal_tab(1, this);">Log+ på</a>+ </div>+ <!--<div class="modal-content modal-tab-content" id="modal-tab-3">+ <p class="modal-hint">Indtast din email, så opretter vi dig straks som Premium-bruger. Herefter kan du bruge Valdemarsro Premium ganske gratis de næste 7 dage.</p>+ <form onsubmit="return _try_signup(this);">+ <p class="modal-field">+ <input type="email" id="signup-email" placeholder="Email"/>+ </p>+ <p class="modal-field">+ <input type="email" id="signup-email2" placeholder="Gentag email"/>+ </p>+ <button type="submit">Opret</button>+ </form>+ <div id="signup-msg" class="modal-form-message"></div>+ </div>-->+ </div>+ </div>+ </div>+ </div>+ <script>(function () {+ function maybePrefixUrlField() {+ if (this.value.trim() !== '' && this.value.indexOf('http') !== 0) {+ this.value = "http://" + this.value;+ }+ }++ var urlFields = document.querySelectorAll('.mc4wp-form input[type="url"]');+ if (urlFields) {+ for (var j = 0; j < urlFields.length; j++) {+ urlFields[j].addEventListener('blur', maybePrefixUrlField);+ }+ }+ })();</script>+ <script type='text/javascript' src='https://www.valdemarsro.dk/wp-includes/js/comment-reply.min.js?ver=6.1'+ id='comment-reply-js'></script>+ <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'+ id='jquery-js'></script>+ <script type='text/javascript'+ src='https://www.valdemarsro.dk/wp-content/themes/valdemarsro16/assets/js/valdemarsro.js?v=26092022&ver=6.1'+ id='main-js'></script>+ <script defer type='text/javascript'+ src='https://www.valdemarsro.dk/wp-content/plugins/akismet/_inc/akismet-frontend.js?ver=1664795883'+ id='akismet-frontend-js'></script>+ <script type='text/javascript' defer+ src='https://www.valdemarsro.dk/wp-content/plugins/mailchimp-for-wp/assets/js/forms.js?ver=4.8.11'+ id='mc4wp-forms-api-js'></script>+ <!--stats_footer_test-->+ <script src="https://stats.wordpress.com/e-202245.js" type="text/javascript"></script>+ <script type="text/javascript">+ st_go({ blog: '2253058', v: 'ext', post: '30315' });+ var load_cmc = function () { linktracker_init(2253058, 30315, 2); };+ if (typeof addLoadEvent != 'undefined') addLoadEvent(load_cmc);+ else load_cmc();+ </script>+ <!--<script src="//widgets.sprinklecontent.com/v2/sprinkle.js" async></script>-->+ <script async defer src="//assets.pinterest.com/js/pinit.js"></script>+ <span id="totop" onclick="jQuery('html,body').animate({scrollTop:0}, 'fast');">▲ Til toppen</span>+ <script>+ dataLayer.push({+ event: 'user_state',+ status: 'anonymous'+ });+ function isElementInViewport(el) {+ if (typeof jQuery === 'function' && el instanceof jQuery)+ el = el[0];++ var rect = el.getBoundingClientRect();++ return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /* or $(window).height() */ rect.right <= (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */;+ }+ var _scroll_tracked = [];+ function _promotion_view(name, slot) {+ var ok = false;++ if (isElementInViewport(jQuery('#' + name))) {+ ok = true;+ }+ else {+ jQuery(window).on('DOMContentLoaded load resize scroll', function () {+ if (isElementInViewport(jQuery('#' + name))) {+ if (_scroll_tracked.indexOf(name) >= 0)+ return;++ //console.log(name + ' in viewport');+ _scroll_tracked.push(name);++ dataLayer.push({ ecommerce: null });+ dataLayer.push({+ event: 'view_promotion',+ creative_name: name,+ //creative_slot: "homepage",+ ecommerce: {+ items: [+ {+ item_id: 'SKU_monthly',+ item_name: 'Monthly Premium Subscription',+ currency: 'DKK',+ index: 1,+ item_brand: 'Valdemarsro',+ price: 39,+ quantity: 1+ },+ {+ item_id: 'SKU_yearly',+ item_name: 'Yearly Premium Subscription',+ currency: 'DKK',+ index: 2,+ item_brand: 'Valdemarsro',+ price: 199,+ quantitys: 1+ }+ ]+ }+ });+ }+ });+ }++ if (ok) {+ if (_scroll_tracked.indexOf(name) >= 0)+ return;++ //console.log(name + ' in viewport');+ _scroll_tracked.push(name);++ dataLayer.push({ ecommerce: null });+ dataLayer.push({+ event: 'view_promotion',+ creative_name: name,+ //creative_slot: "homepage",+ ecommerce: {+ items: [+ {+ item_id: 'SKU_monthly',+ item_name: 'Monthly Premium Subscription',+ currency: 'DKK',+ index: 1,+ item_brand: 'Valdemarsro',+ price: 39,+ quantity: 1+ },+ {+ item_id: 'SKU_yearly',+ item_name: 'Yearly Premium Subscription',+ currency: 'DKK',+ index: 2,+ item_brand: 'Valdemarsro',+ price: 199,+ quantitys: 1+ }+ ]+ }+ });+ }+ }+ function _promotion_click(name, slot) {+ dataLayer.push({ ecommerce: null });+ dataLayer.push({+ event: 'select_promotion',+ creative_name: name,+ ecommerce: {+ items: [+ {+ item_id: 'SKU_monthly',+ item_name: 'Monthly Premium Subscription',+ currency: 'DKK',+ index: 1,+ item_brand: 'Valdemarsro',+ price: 39,+ quantity: 1+ },+ {+ item_id: 'SKU_yearly',+ item_name: 'Yearly Premium Subscription',+ currency: 'DKK',+ index: 2,+ item_brand: 'Valdemarsro',+ price: 199,+ quantitys: 1+ }+ ]+ }+ });++ return true;+ }+ </script>+</body>++</html>\ No newline at end of filediff --git a/testcases/schema_org/stackoverflow.html b/testcases/schema_org/stackoverflow.htmlnew file mode 100644index 00000000..0f52b513--- /dev/null+++ b/testcases/schema_org/stackoverflow.html@@ -0,0 +1,9740 @@+<!DOCTYPE html>+++ <html itemscope itemtype="https://schema.org/QAPage" class="html__responsive " lang="en">++ <head>++ <title>html - RegEx match open tags except XHTML self-contained tags - Stack Overflow</title>+ <link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196">+ <link rel="apple-touch-icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">+ <link rel="image_src" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">+ <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">+ <link rel="canonical" href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags" />+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">+ <meta property="og:type" content= "website" />+ <meta property="og:url" content="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags"/>+ <meta property="og:site_name" content="Stack Overflow" />+ <meta property="og:image" itemprop="image primaryImageOfPage" content="https://cdn.sstatic.net/Sites/stackoverflow/Img/[email protected]?v=73d79a89bded" />+ <meta name="twitter:card" content="summary"/>+ <meta name="twitter:domain" content="stackoverflow.com"/>+ <meta name="twitter:title" property="og:title" itemprop="name" content="RegEx match open tags except XHTML self-contained tags" />+ <meta name="twitter:description" property="og:description" itemprop="description" content="I need to match all of these opening tags:

&lt;p&gt;
&lt;a href="foo"&gt;
But not these:

&lt;br /&gt;
&lt;hr class="foo" /&gt;
I came up with this and wanted to make sure I've got it right. I a..." />+ <script id="webpack-public-path" type="text/uri-list">https://cdn.sstatic.net/</script>+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>+ <script defer src="https://cdn.sstatic.net/Js/third-party/npm/@stackoverflow/stacks/dist/js/stacks.min.js?v=facbc6b2f3b6"></script>+ <script src="https://cdn.sstatic.net/Js/stub.en.js?v=0e3ada576039"></script>+++ <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/stacks.css?v=5ad0f45f4799">+ <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=262abaa77efd">++++ <link rel="alternate" type="application/atom+xml" title="Feed for question 'RegEx match open tags except XHTML self-contained tags'" href="/feeds/question/1732348">+ <meta name="twitter:app:country" content="US" />+ <meta name="twitter:app:name:iphone" content="Stack Exchange iOS" />+ <meta name="twitter:app:id:iphone" content="871299723" />+ <meta name="twitter:app:url:iphone" content="se-zaphod://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags" />+ <meta name="twitter:app:name:ipad" content="Stack Exchange iOS" />+ <meta name="twitter:app:id:ipad" content="871299723" />+ <meta name="twitter:app:url:ipad" content="se-zaphod://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags" />+ <meta name="twitter:app:name:googleplay" content="Stack Exchange Android">+ <meta name="twitter:app:url:googleplay" content="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags">+ <meta name="twitter:app:id:googleplay" content="com.stackexchange.marvin">+ <script>+ StackExchange.ready(function () {++ StackExchange.using("snippets", function () {+ StackExchange.snippets.initSnippetRenderer();+ });++ StackExchange.using("postValidation", function () {+ StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer');+ });+++ StackExchange.question.init({showAnswerHelp:true,showTrendingSortLaunchPopover:false,showTrendingSortPostLaunchPopover:false,totalCommentCount:0,shownCommentCount:0,enableTables:true,questionId:1732348});++ styleCode();++ StackExchange.realtime.subscribeToQuestion('1', '1732348');+ StackExchange.using("gps", function () { StackExchange.gps.trackOutboundClicks('#content', '.js-post-body'); });+++ });+ </script>+++++ <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/Channels/channels.css?v=d098999fc478">++++++ <script type="application/json" data-role="module-args" data-module-name="Shared/options.mod">{"options":{"locale":"en","serverTime":1668500813,"routeName":"Questions/Show","stackAuthUrl":"https://stackauth.com","networkMetaHostname":"meta.stackexchange.com","site":{"name":"Stack Overflow","description":"Q\u0026A for professional and enthusiast programmers","isNoticesTabEnabled":true,"enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"id":1,"cookieDomain":".stackoverflow.com","childUrl":"https://meta.stackoverflow.com","negativeVoteScoreFloor":null,"enableSocialMediaInSharePopup":true,"protocol":"https"},"user":{"fkey":"ca9d9b394875f6ac7a25f1ad0c7b366bef60d37f2ac94c5aa28e142974eade95","tid":"a3204cf0-7ac6-2f70-ab9d-307215f2206c","rep":0,"isAnonymous":true,"isAnonymousNetworkWide":true},"events":{"postType":{"question":1},"postEditionSection":{"title":1,"body":2,"tags":3}},"svgIconPath":"https://cdn.sstatic.net/Img/stacks-icons","svgIconHash":"152dfe64472f"}}</script>+<script type="application/json" data-role="module-args" data-module-name="Shared/settings.mod">{"settings":{"userMessaging":{"showNewFeatureNotice":true},"tags":{},"subscriptions":{"defaultBasicMaxTrueUpSeats":250,"defaultFreemiumMaxTrueUpSeats":50,"defaultMaxTrueUpSeats":1000},"snippets":{"renderDomain":"stacksnippets.net","snippetsEnabled":true},"site":{"allowImageUploads":true,"enableImgurHttps":true,"enableUserHovercards":true,"forceHttpsImages":true,"stacksEditorPreviewEnabled":true,"styleCode":true},"questions":{"enableQuestionTitleLengthLiveWarning":true,"enableSavesFeature":true,"maxTitleSize":150,"questionTitleLengthStartLiveWarningChars":50},"intercom":{"appId":"inf0secd","hostBaseUrl":"https://stacksnippets.net"},"paths":{"jQueryUICSSPath":"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/themes/smoothness/jquery-ui.css","jQueryUIJSPath":"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"},"monitoring":{"clientTimingsAbsoluteTimeout":30000,"clientTimingsDebounceTimeout":1000},"mentions":{"maxNumUsersInDropdown":50},"markdown":{"enableTables":true},"legal":{"oneTrustConfigId":"c3d9f1e3-55f3-4eba-b268-46cee4c6789c"},"flags":{"allowRetractingCommentFlags":true,"allowRetractingFlags":true},"elections":{"opaVoteResultsBaseUrl":"https://www.opavote.com/results/"},"comments":{},"accounts":{"currentPasswordRequiredForChangingStackIdPassword":true}}}</script>+<script>StackExchange.init();</script>++ <script>+ StackExchange.using.setCacheBreakers({"Js/adops.en.js":"6da43f5e0a84","Js/ask.en.js":"","Js/begin-edit-event.en.js":"dd955babf04d","Js/copy-transpiled.en.js":"e7855bee94f2","Js/events.en.js":"","Js/explore-qlist.en.js":"2b1f34938b8b","Js/full-anon.en.js":"72dd1e0db5d6","Js/full.en.js":"225ffc0e04e4","Js/highlightjs-loader.en.js":"a284064706b3","Js/inline-tag-editing.en.js":"629d801833ec","Js/keyboard-shortcuts.en.js":"a715495ee04f","Js/markdown-it-loader.en.js":"5818ef89ff9d","Js/moderator.en.js":"b08f5d20ce12","Js/postCollections-transpiled.en.js":"529276cfb7ae","Js/post-validation.en.js":"a49eba10a0e2","Js/question-editor.en.js":"","Js/review-v2-transpiled.en.js":"d5efdefd09e8","Js/revisions.en.js":"a86490719687","Js/stacks-editor.en.js":"198834eebc62","Js/tageditor.en.js":"825c9597ce2d","Js/tageditornew.en.js":"4340d4f2a34c","Js/tagsuggestions.en.js":"1bcff7d98f97","Js/unlimited-transpiled.en.js":"7ed67670b600","Js/wmd.en.js":"6a59bb1514a2","Js/snippet-javascript-codemirror.en.js":"73fce5cc7219"});+ StackExchange.using("gps", function() {+ StackExchange.gps.init(false);+ });+ </script>+ <noscript id="noscript-css"><style>body,.s-topbar{margin-top:1.9em}</style></noscript>+ </head>+ <body class="question-page unified-theme">+ <div id="notify-container"></div>+ <div id="custom-header"></div>++<header class="s-topbar ps-fixed t0 l0 js-top-bar">+ <div class="s-topbar--container">+ <a href="#" class="s-topbar--menu-btn js-left-sidebar-toggle" role="menuitem" aria-haspopup="true" aria-controls="left-sidebar" aria-expanded="false"><span></span></a>+ <div class="topbar-dialog leftnav-dialog js-leftnav-dialog dno">+ <div class="left-sidebar js-unpinned-left-sidebar" data-can-be="left-sidebar" data-is-here-when="sm"></div>+ </div>+ <a href="https://stackoverflow.com" class="s-topbar--logo js-gps-track"+ data-gps-track="top_nav.click({is_current:false, location:2, destination:8})">+ <span class="-img _glyph">Stack Overflow</span>+ </a>++++ <ol class="s-navigation" role="presentation">++ <li class="md:d-none">+ <a href="https://stackoverflow.co/" class="s-navigation--item js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:7})"+ data-ga="["top navigation","about menu click",null,null,null]">About</a>+ </li>++ <li>+ <a href="#"+ class="s-navigation--item js-gps-track js-products-menu"+ aria-controls="products-popover"+ data-controller="s-popover"+ data-action="s-popover#toggle"+ data-s-popover-placement="bottom"+ data-s-popover-toggle-class="is-selected"+ data-gps-track="top_nav.products.click({location:2, destination:1})"+ data-ga="["top navigation","products menu click",null,null,null]">+ Products+ </a>+ </li>++ <li class="md:d-none">+ <a href="/teams" class="s-navigation--item js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:7})"+ data-ga="["top navigation","learn more - teams",null,null,null]">For Teams</a>+ </li>+ </ol>+ <div class="s-popover ws2 mtn2 p0"+ id="products-popover"+ role="menu"+ aria-hidden="true">+ <div class="s-popover--arrow"></div>+ <ol class="list-reset s-anchors s-anchors__inherit">+ <li class="m6">+ <a href="/questions" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:2})"+ data-ga="["top navigation","public qa submenu click",null,null,null]">+ <span class="fs-body1 d-block">Stack Overflow</span>+ <span class="fs-caption d-block fc-light">Public questions & answers</span>+ </a>+ </li>+ <li class="m6">+ <a href="/teams" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:3})"+ data-ga="["top navigation","teams submenu click",null,null,null]">+ <span class="fs-body1 d-block">Stack Overflow for Teams</span>+ <span class="fs-caption d-block fc-light">Where developers & technologists share private knowledge with coworkers</span>+ </a>+ </li>+ <li class="m6">+ <a href="https://stackoverflow.co/talent" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:5})"+ data-ga="["top navigation","talent submenu click",null,null,null]">+ <span class="fs-body1 d-block">Talent</span>+ <span class="fs-caption d-block fc-light">+ Build your employer brand+ </span>+ </a>+ </li>+ <li class="m6">+ <a href="https://stackoverflow.co/advertising" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:6})"+ data-ga="["top navigation","advertising submenu click",null,null,null]">+ <span class="fs-body1 d-block">Advertising</span>+ <span class="fs-caption d-block fc-light">Reach developers & technologists worldwide</span>+ </a>+ </li>+ <li class="bg-black-025 bt bc-black-075 py6 px6 bbr-md">+ <a href="https://stackoverflow.co/" class="fc-light d-block py6 px6 h:fc-black-800 js-gps-track"+ data-gps-track="top_nav.products.click({location:2, destination:7})"+ data-ga="["top navigation","about submenu click",null,null,null]">About the company</a>+ </li>+ </ol>+ </div>+++ <form id="search" role="search" action=/search class="s-topbar--searchbar js-searchbar " autocomplete="off">+ <div class="s-topbar--searchbar--input-group">+ <input name="q"+ type="text"+ placeholder="Search…"+ value=""+ autocomplete="off"+ maxlength="240"+ class="s-input s-input__search js-search-field "+ aria-label="Search"+ aria-controls="top-search"+ data-controller="s-popover"+ data-action="focus->s-popover#show"+ data-s-popover-placement="bottom-start" />+ <svg aria-hidden="true" class="s-input-icon s-input-icon__search svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"/></svg>+ <div class="s-popover p0 wmx100 wmn4 sm:wmn-initial js-top-search-popover" id="top-search" role="menu">+ <div class="s-popover--arrow"></div>+ <div class="js-spinner p24 d-flex ai-center jc-center d-none">+ <div class="s-spinner s-spinner__sm fc-orange-400">+ <div class="v-visible-sr">Loading…</div>+ </div>+ </div>++ <span class="v-visible-sr js-screen-reader-info"></span>+ <div class="js-ac-results overflow-y-auto hmx3 d-none"></div>++ <div class="js-search-hints" aria-describedby="Tips for searching"></div>+</div>+ </div>+ </form>++<nav class="h100 ml-auto overflow-x-auto pr12">+ <ol class="s-topbar--content" role="menubar">++++ <li class="js-topbar-dialog-corral" role="presentation">+++ <div class="topbar-dialog siteSwitcher-dialog dno" role="menu">+ <div class="header fw-wrap">+ <h3 class="flex--item">+ <a href="https://stackoverflow.com">current community</a>+ </h3>+ <div class="flex--item fl1">+ <div class="ai-center d-flex jc-end">+ <button+ class="js-close-button s-btn s-btn__muted p0 ml8 d-none sm:d-block"+ type="button"+ aria-label="Close"+ >+ <svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewBox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41Z"/></svg>+ </button>+ </div>+ </div>+ </div>+ <div class="modal-content bg-powder-050 current-site-container">+ <ul class="current-site ">+ <li class="d-flex">+ <div class="fl1">+ <a href="https://stackoverflow.com"+ class="current-site-link site-link js-gps-track d-flex gs8 gsx"+ data-id="1"+ data-gps-track="site_switcher.click({ item_type:3 })">+ <div class="favicon favicon-stackoverflow site-icon flex--item" title="Stack Overflow"></div>+ <span class="flex--item fl1">+ Stack Overflow+ </span>+ </a>++ </div>+ <div class="related-links">+ <a href="https://stackoverflow.com/help" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:14 })">help</a>+ <a href="https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:6 })">chat</a>+ </div>++ </li>+ <li class="related-site d-flex">+ <div class="L-shaped-icon-container">+ <span class="L-shaped-icon"></span>+ </div>++ <a href="https://meta.stackoverflow.com"+ class=" site-link js-gps-track d-flex gs8 gsx"+ data-id="552"+ data-gps-track="site.switch({ target_site:552, item_type:3 }),site_switcher.click({ item_type:4 })">+ <div class="favicon favicon-stackoverflowmeta site-icon flex--item" title="Meta Stack Overflow"></div>+ <span class="flex--item fl1">+ Meta Stack Overflow+ </span>+ </a>++ </li>+ </ul>+ </div>++ <div class="header" id="your-communities-header">+ <h3>+your communities </h3>++ </div>+ <div class="modal-content" id="your-communities-section">++ <div class="call-to-login">+<a href="https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1732348%2fregex-match-open-tags-except-xhtml-self-contained-tags" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })">Sign up</a> or <a href="https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1732348%2fregex-match-open-tags-except-xhtml-self-contained-tags" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })">log in</a> to customize your list. </div>+ </div>++ <div class="header">+ <h3><a href="https://stackexchange.com/sites">more stack exchange communities</a>+ </h3>+ <a href="https://stackoverflow.blog" class="float-right">company blog</a>+ </div>+ <div class="modal-content">+ <div class="child-content"></div>+ </div>+ </div>++ </li>++ <li role="none"><button class="s-topbar--item s-btn s-btn__icon s-btn__muted d-none sm:d-inline-flex js-searchbar-trigger" role="menuitem" aria-label="Search" aria-haspopup="true" aria-controls="search" title="Click to show search"><svg aria-hidden="true" class="svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"/></svg></button></li>+ <li role="none">+ <a href="https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1732348%2fregex-match-open-tags-except-xhtml-self-contained-tags" class="s-topbar--item s-topbar--item__unset s-btn s-btn__filled ws-nowrap js-gps-track" role="menuitem" rel="nofollow"+ data-gps-track="login.click" data-ga="["top navigation","login button click",null,null,null]">Log in</a>+ </li>+ <li role="none"><a href="https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1732348%2fregex-match-open-tags-except-xhtml-self-contained-tags" class="s-topbar--item s-topbar--item__unset ml4 s-btn s-btn__primary ws-nowrap" role="menuitem" rel="nofollow" data-ga="["sign up","Sign Up Navigation","Header",null,null]">Sign up</a></li>+ </ol>+</nav>+++ </div>+</header>++ <script>+ StackExchange.ready(function () { StackExchange.topbar.init(); });+ StackExchange.scrollPadding.setPaddingTop(50, 10);+ </script>++++++ <div class="container">+++<div id="left-sidebar" data-is-here-when="md lg" class="left-sidebar js-pinned-left-sidebar ps-relative">+ <div class="left-sidebar--sticky-container js-sticky-leftnav">+ <nav role="navigation">+ <ol class="nav-links">+++<li class="ps-relative" aria-current="false">+++ <a+ href="/"+ class="pl8 js-gps-track nav-links--link"++ data-gps-track="top_nav.click({is_current: false, location:2, destination:8})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+ <div class="d-flex ai-center">+ <div class="flex--item truncate">+ Home+ </div>+ </div>+ </a>+</li>++ <li>+ <ol class="nav-links">+ <li class="fs-fine tt-uppercase ml8 mt16 mb4 fc-light">Public</li>++++<li class="ps-relative youarehere" aria-current="true">+++ <a id="nav-questions"+ href="/questions"+ class="pl8 js-gps-track nav-links--link -link__with-icon"++ data-gps-track="top_nav.click({is_current: true, location:2, destination:1})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+<svg aria-hidden="true" class="svg-icon iconGlobe" width="18" height="18" viewBox="0 0 18 18"><path d="M9 1C4.64 1 1 4.64 1 9c0 4.36 3.64 8 8 8 4.36 0 8-3.64 8-8 0-4.36-3.64-8-8-8ZM8 15.32a6.46 6.46 0 0 1-4.3-2.74 6.46 6.46 0 0 1-.93-5.01L7 11.68v.8c0 .88.12 1.32 1 1.32v1.52Zm5.72-2c-.2-.66-1-1.32-1.72-1.32h-1v-2c0-.44-.56-1-1-1H6V7h1c.44 0 1-.56 1-1V5h2c.88 0 1.4-.72 1.4-1.6v-.33a6.45 6.45 0 0 1 3.83 4.51 6.45 6.45 0 0 1-1.51 5.73v.01Z"/></svg> <span class="-link--channel-name">Questions</span>+ </a>+</li>++++<li class="ps-relative" aria-current="false">+++ <a id="nav-tags"+ href="/tags"+ class=" js-gps-track nav-links--link"++ data-gps-track="top_nav.click({is_current: false, location:2, destination:2})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+ <div class="d-flex ai-center">+ <div class="flex--item truncate">+ Tags+ </div>+ </div>+ </a>+</li>++++<li class="ps-relative" aria-current="false">+++ <a id="nav-users"+ href="/users"+ class=" js-gps-track nav-links--link"++ data-gps-track="top_nav.click({is_current: false, location:2, destination:3})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+ <div class="d-flex ai-center">+ <div class="flex--item truncate">+ Users+ </div>+ </div>+ </a>+</li>++++<li class="ps-relative" aria-current="false">+++ <a id="nav-companies"+ href="https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav"+ class=" js-gps-track nav-links--link"++ data-gps-track="top_nav.click({is_current: false, location:2, destination:12})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+ <div class="d-flex ai-center">+ <div class="flex--item truncate">+ Companies+ </div>+ </div>+ </a>+</li>++ <li class="d-flex ml8 mt16 jc-space-between">+ <div class="flex--item tt-uppercase tt-uppercase fs-fine fc-light">Collectives</div>+ <div class="flex--item fs-fine fc-light">+ <a href="javascript:void(0)" class="s-link s-link__inherit mr8 js-gps-track js-collectives-navcta-toggle"+ role="button"+ aria-controls="popover-discover-collectives"+ data-controller="s-popover"+ data-action="s-popover#toggle"+ data-s-popover-placement="top"+ data-s-popover-toggle-class="is-selected"+ data-gps-track="top_nav.click({is_current:false, location:2, destination:17})">+ <svg aria-hidden="true" class="svg-icon iconInfoSm" width="14" height="14" viewBox="0 0 14 14"><path d="M7 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Zm1 10V6H6v5h2Zm0-6V3H6v2h2Z"/></svg>+ </a>+ </div>+ </li>+++<li class="ps-relative" aria-current="false">+++ <a id="nav-collective-discover"+ href="/collectives"+ class="pl8 ai-center js-collectives-navcta-toggle js-gps-track nav-links--link -link__with-icon"++ data-gps-track="top_nav.click({is_current: false, location:2, destination:18})"+ aria-controls="" data-controller="" data-s-popover-placement="right"+ aria-current="false"+ data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never">+<svg aria-hidden="true" class="mt-auto fc-orange-400 svg-icon iconStarVerified" width="18" height="18" viewBox="0 0 18 18"><path d="M9.86.89a1.14 1.14 0 0 0-1.72 0l-.5.58c-.3.35-.79.48-1.23.33l-.72-.25a1.14 1.14 0 0 0-1.49.85l-.14.76c-.1.45-.45.8-.9.9l-.76.14c-.67.14-1.08.83-.85 1.49l.25.72c.15.44.02.92-.33 1.23l-.58.5a1.14 1.14 0 0 0 0 1.72l.58.5c.35.3.48.79.33 1.23l-.25.72c-.23.66.18 1.35.85 1.49l.76.14c.45.1.8.45.9.9l.14.76c.14.67.83 1.08 1.49.85l.72-.25c.44-.15.92-.02 1.23.33l.5.58c.46.52 1.26.52 1.72 0l.5-.58c.3-.35.79-.48 1.23-.33l.72.25c.66.23 1.35-.18 1.49-.85l.14-.76c.1-.45.45-.8.9-.9l.76-.14c.67-.14 1.08-.83.85-1.49l-.25-.72c-.15-.44-.02-.92.33-1.23l.58-.5c.52-.46.52-1.26 0-1.72l-.58-.5c-.35-.3-.48-.79-.33-1.23l.25-.72a1.14 1.14 0 0 0-.85-1.49l-.76-.14c-.45-.1-.8-.45-.9-.9l-.14-.76a1.14 1.14 0 0 0-1.49-.85l-.72.25c-.44.15-.92.02-1.23-.33l-.5-.58Zm-.49 2.67L10.6 6.6c.05.15.19.24.34.25l3.26.22c.36.03.5.48.23.71l-2.5 2.1a.4.4 0 0 0-.14.4l.8 3.16a.4.4 0 0 1-.6.44L9.2 12.13a.4.4 0 0 0-.42 0l-2.77 1.74a.4.4 0 0 1-.6-.44l.8-3.16a.4.4 0 0 0-.13-.4l-2.5-2.1a.4.4 0 0 1 .22-.7l3.26-.23a.4.4 0 0 0 .34-.25l1.22-3.03a.4.4 0 0 1 .74 0Z"/></svg> <span class="-link--channel-name">Explore Collectives</span>+ </a>+</li>++ </ol>+ </li>++++<li>+ <ol class="nav-links">+++<li class="js-freemium-cta ps-relative">++ <div class="fs-fine tt-uppercase ml8 mt16 mb8 fc-light">Teams</div>++ <div class="bt bl bb bc-black-075 p12 pb6 fc-black-600 blr-sm overflow-hidden">+ <strong class="fc-black-750 mb6">Stack Overflow for Teams</strong>+ – Start collaborating and sharing organizational knowledge.++ <img class="wmx100 mx-auto my8 h-auto d-block" width="139" height="114" src="https://cdn.sstatic.net/Img/teams/teams-illo-free-sidebar-promo.svg?v=47faa659a05e" alt="">++ <a href="https://try.stackoverflow.co/why-teams/?utm_source=so-owned&utm_medium=side-bar&utm_campaign=campaign-38&utm_content=cta"+ class="w100 s-btn s-btn__primary s-btn__xs bg-orange-400 js-gps-track"+ data-gps-track="teams.create.left-sidenav.click({ Action: 6 })"+ data-ga="["teams left navigation - anonymous","left nav free cta","stackoverflow.com/teams/create/free",null,null]">Create a free Team</a>+ <a href="https://stackoverflow.co/teams"+ class="w100 s-btn s-btn__muted s-btn__xs js-gps-track"+ data-gps-track="teams.create.left-sidenav.click({ Action: 5 })"+ data-ga="["teams left navigation - anonymous","left nav free cta","stackoverflow.com/teams",null,null]">Why Teams?</a>++ </div>+</li>+++ <li class="d-flex ai-center jc-space-between ml8 mt24 mb4 js-create-team-cta d-none">+ <div class="flex--item tt-uppercase fs-fine fc-light">Teams</div>+ <div class="flex--item">+ <a href="javascript:void(0)" class="s-link p12 fc-black-500 h:fc-black-800 js-gps-track"+ role="button"+ aria-controls="popover-teams-create-cta"+ data-controller="s-popover"+ data-action="s-popover#toggle"+ data-s-popover-placement="bottom-start"+ data-s-popover-toggle-class="is-selected"+ data-gps-track="teams.create.left-sidenav.click({ Action: ShowInfo })"+ data-ga="["teams left navigation - anonymous","left nav show teams info",null,null,null]">+ <svg aria-hidden="true" class="svg-icon iconInfoSm" width="14" height="14" viewBox="0 0 14 14"><path d="M7 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Zm1 10V6H6v5h2Zm0-6V3H6v2h2Z"/></svg>+ </a>++ </div>+ </li>+ <li class="ps-relative js-create-team-cta d-none">+ <a href="https://stackoverflowteams.com/teams/create/free?utm_source=so-owned&utm_medium=side-bar&utm_campaign=campaign-38&utm_content=cta"+ class="pl8 js-gps-track nav-links--link"+ title="Stack Overflow for Teams is a private, secure spot for your organization's questions and answers."+ data-gps-track="teams.create.left-sidenav.click({ Action: FreemiumTeamsCreateClick })"+ data-ga="["teams left navigation - anonymous","left nav team click","stackoverflow.com/teams/create/free",null,null]">+ <div class="d-flex ai-center">+ <div class="flex--item s-avatar va-middle bg-orange-400">+ <div class="s-avatar--letter mtn1">+ <svg aria-hidden="true" class="svg-icon iconBriefcaseSm" width="14" height="14" viewBox="0 0 14 14"><path d="M4 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h.5c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5h-7A1.5 1.5 0 0 1 2 10.5v-5C2 4.67 2.67 4 3.5 4H4V3Zm5 1V3H5v1h4Z"/></svg>+ </div>+ <svg aria-hidden="true" class="native s-avatar--badge svg-icon iconShieldXSm" width="9" height="10" viewBox="0 0 9 10"><path d="M0 1.84 4.5 0 9 1.84v3.17C9 7.53 6.3 10 4.5 10 2.7 10 0 7.53 0 5.01V1.84Z" fill="var(--white)"/><path d="M1 2.5 4.5 1 8 2.5v2.51C8 7.34 5.34 9 4.5 9 3.65 9 1 7.34 1 5.01V2.5Zm2.98 3.02L3.2 7h2.6l-.78-1.48a.4.4 0 0 1 .15-.38c.34-.24.73-.7.73-1.14 0-.71-.5-1.23-1.41-1.23-.92 0-1.39.52-1.39 1.23 0 .44.4.9.73 1.14.12.08.18.23.15.38Z" fill="var(--black-500)"/></svg>+ </div>+ <div class="flex--item pl6">+ Create free Team+ </div>+ </div>+ </a>+ </li>+ </ol>+</li>+ </ol>+ </nav>+ </div>++ <div class="s-popover mt4 ws3"+ id="teams-are-moving-popover"+ role="menu">+ <div class="s-popover--arrow"></div>+ <p>Stack Overflow for Teams is moving to its own domain! When the migration is complete, you will access your Teams at <span class="fs-italic">stackoverflowteams.com</span>, and they will no longer appear in the left sidebar on <span class="fs-italic">stackoverflow.com</span>.</p>+ <p>Check your email for updates.</p>+ </div>++ <div class="s-popover ws2" id="popover-discover-collectives" role="menu">+ <div class="s-popover--arrow"></div>+ <div>+ <svg aria-hidden="true" class="fc-orange-500 float-right ml24 svg-spot spotCollective" width="48" height="48" viewBox="0 0 48 48"><path d="M25.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM14 18.25c0-.69.56-1.25 1.25-1.25h22.5c.69 0 1.25.56 1.25 1.25V37.5a1 1 0 0 1-1.6.8l-4.07-3.05a1.25 1.25 0 0 0-.75-.25H15.25c-.69 0-1.25-.56-1.25-1.25v-15.5ZM7 24.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM25.5 48a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM48 24.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z" opacity=".2"/><path d="M21 3.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM24.5 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM0 23.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM3.5 22a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM21 44.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Zm3.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm20-23a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM43 23.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-23.23-3.14a1 1 0 0 1-.13 1.4l-2.08 1.74 2.08 1.73a1 1 0 1 1-1.28 1.54l-2.42-2.02a1.63 1.63 0 0 1 0-2.5l2.42-2.02a1 1 0 0 1 1.4.13Zm7.59 1.41a1 1 0 1 1 1.28-1.54l2.42 2.02c.78.65.78 1.85 0 2.5l-2.42 2.02a1 1 0 1 1-1.28-1.54l2.08-1.73-2.08-1.73ZM24.12 18a1 1 0 0 1 .87 1.12l-1 8a1 1 0 1 1-1.98-.24l1-8a1 1 0 0 1 1.11-.87Zm-11.87-5C11.01 13 10 14 10 15.25v15.5c0 1.24 1 2.25 2.25 2.25h17.33c.06 0 .11.02.15.05l4.07 3.05a2 2 0 0 0 3.2-1.6V15.25c0-1.24-1-2.25-2.25-2.25h-22.5ZM12 15.25c0-.14.11-.25.25-.25h22.5c.14 0 .25.11.25.25V34.5l-4.07-3.05a2.2 2.2 0 0 0-1.35-.45H12.25a.25.25 0 0 1-.25-.25v-15.5Zm7.24-10.68a1 1 0 1 0-.48-1.94A22.04 22.04 0 0 0 2.91 17.7a1 1 0 1 0 1.92.58 20.04 20.04 0 0 1 14.4-13.72Zm11.05-1.66a1 1 0 0 0-.58 1.92c6.45 1.92 11.54 7 13.46 13.46a1 1 0 1 0 1.92-.58 22.05 22.05 0 0 0-14.8-14.8ZM4.57 28.76a1 1 0 0 0-1.94.48 22.03 22.03 0 0 0 16.13 16.13 1 1 0 1 0 .48-1.94A20.03 20.03 0 0 1 4.57 28.76Zm40.8.48a1 1 0 1 0-1.94-.48 20.04 20.04 0 0 1-13.72 14.41 1 1 0 0 0 .58 1.92 22.04 22.04 0 0 0 15.08-15.85Z"/></svg>+ <h5 class="pt4 fw-bold">Collectives™ on Stack Overflow</h5>+ <p class="my16 fs-caption fc-medium">Find centralized, trusted content and collaborate around the technologies you use most.</p>+ <a href="/collectives"+ class="js-gps-track s-btn s-btn__primary s-btn__xs"+ data-gps-track="top_nav.click({is_current:false, location:2, destination:18})">+ Learn more about Collectives+ </a>+ </div>+ </div>+++ <div class="s-popover ws2"+ id="popover-teams-create-cta"+ role="menu"+ aria-hidden="true">+ <div class="s-popover--arrow"></div>++ <div class="ps-relative overflow-hidden">+ <p class="mb2"><strong>Teams</strong></p>+ <p class="mb12 fs-caption fc-black-400">Q&A for work</p>+ <p class="mb12 fs-caption fc-medium">Connect and share knowledge within a single location that is structured and easy to search.</p>+ <a href="https://stackoverflow.co/teams"+ class="js-gps-track s-btn s-btn__primary s-btn__xs"+ data-gps-track="teams.create.left-sidenav.click({ Action: CtaClick })"+ data-ga="["teams left navigation - anonymous","left nav cta","stackoverflow.com/teams",null,null]">+ Learn more about Teams+ </a>+ </div>++ <div class="ps-absolute t8 r8">+ <svg aria-hidden="true" class="fc-orange-500 svg-spot spotPeople" width="48" height="48" viewBox="0 0 48 48"><path d="M13.5 28a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM7 30a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v5h11v-5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v10a2 2 0 0 1-2 2H33v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5H8a1 1 0 0 1-1-1V30Zm25-6.5a4.5 4.5 0 1 0 9 0 4.5 4.5 0 0 0-9 0ZM24.5 34a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z" opacity=".2"/><path d="M16.4 26.08A6 6 0 1 0 7.53 26C5.64 26.06 4 27.52 4 29.45V40a1 1 0 0 0 1 1h9a1 1 0 1 0 0-2h-4v-7a1 1 0 1 0-2 0v7H6v-9.55c0-.73.67-1.45 1.64-1.45H16a1 1 0 0 0 .4-1.92ZM12 18a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm16.47 14a6 6 0 1 0-8.94 0A3.6 3.6 0 0 0 16 35.5V46a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V35.5c0-1.94-1.64-3.42-3.53-3.5ZM20 28a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm-.3 6h8.6c1 0 1.7.75 1.7 1.5V45h-2v-7a1 1 0 1 0-2 0v7h-4v-7a1 1 0 1 0-2 0v7h-2v-9.5c0-.75.7-1.5 1.7-1.5ZM42 22c0 1.54-.58 2.94-1.53 4A3.5 3.5 0 0 1 44 29.45V40a1 1 0 0 1-1 1h-9a1 1 0 1 1 0-2h4v-7a1 1 0 1 1 2 0v7h2v-9.55A1.5 1.5 0 0 0 40.48 28H32a1 1 0 0 1-.4-1.92A6 6 0 1 1 42 22Zm-2 0a4 4 0 1 0-8 0 4 4 0 0 0 8 0Z"/><g opacity=".35"><path d="M17 10a1 1 0 011-1h12a1 1 0 110 2H18a1 1 0 01-1-1Zm1-5a1 1 0 100 2h12a1 1 0 100-2H18ZM14 1a1 1 0 00-1 1v12a1 1 0 001 1h5.09l4.2 4.2a1 1 0 001.46-.04l3.7-4.16H34a1 1 0 001-1V2a1 1 0 00-1-1H14Zm1 12V3h18v10h-5a1 1 0 00-.75.34l-3.3 3.7-3.74-3.75a1 1 0 00-.71-.29H15Z"/></g></svg>+ </div>+ </div>+++</div>+++++++ <div id="content" class="snippet-hidden">++++<div itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">+ <link itemprop="image" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">++ <div class="inner-content clearfix">++++ <div id="question-header" class="d-flex sm:fd-column">+ <h1 itemprop="name" class="fs-headline1 ow-break-word mb8 flex--item fl1"><a href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags" class="question-hyperlink">RegEx match open tags except XHTML self-contained tags</a></h1>+ <div class="ml12 aside-cta flex--item print:d-none sm:ml0 sm:mb12 sm:order-first sm:as-end">+ <a href="/questions/ask" class="ws-nowrap s-btn s-btn__primary">+ Ask Question+ </a>++ </div>+ </div>+ <div class="d-flex fw-wrap pb8 mb16 bb bc-black-075">+ <div class="flex--item ws-nowrap mr16 mb8" title="2009-11-13 22:38:26Z">+ <span class="fc-light mr2">Asked</span>+ <time itemprop="dateCreated" datetime="2009-11-13T22:38:26">13 years ago</time>+ </div>+ <div class="flex--item ws-nowrap mr16 mb8">+ <span class="fc-light mr2">Modified</span>+ <a href="?lastactivity" class="s-link s-link__inherit" title="2022-11-07 22:45:58Z">7 days ago</a>+ </div>+ <div class="flex--item ws-nowrap mb8" title="Viewed 3,501,951 times">+ <span class="fc-light mr2">Viewed</span>+ 3.5m times+ </div>+ </div>+ <div id="mainbar" role="main" aria-label="question and answers">+++<div class="question js-question" data-questionid="1732348" data-position-on-page="0" data-score="2102" id="question">+ <style>+ </style>+<div class="js-zone-container zone-container-main">+ <div id="dfp-tlb" class="everyonelovesstackoverflow everyoneloves__top-leaderboard everyoneloves__leaderboard"></div>+ <div class="js-report-ad-button-container " style="width: 728px"></div>+</div>++ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1732348">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This question shows research effort; it is useful and clear"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="2102">+ 2102+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This question does not show any research effort; it is unclear or not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1732348"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this question."+ aria-pressed="false"+ data-post-id="1732348"+ data-post-type-id="1"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1732348/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="postcell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+ <div>+ <aside class="s-notice s-notice__info post-notice js-post-notice mb16" role="status">+ <div class="d-flex fd-column fw-nowrap">+ <div class="d-flex fw-nowrap">+ <div class="flex--item mr8">+ <svg aria-hidden="true" class="svg-icon iconLock" width="18" height="18" viewBox="0 0 18 18"><path d="M16 9a2 2 0 0 0-2-2V6A5 5 0 0 0 4 6v1a2 2 0 0 0-2 2v6c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9Zm-7 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm3.1-7H5.9V6a3.1 3.1 0 0 1 6.2 0v1Z"/></svg>+ </div>+ <div class="flex--item wmn0 fl1 lh-lg">+ <div class="flex--item fl1 lh-lg">+ <b>Locked</b>. Comments on this question have been disabled, but it is still accepting new answers and other interactions. <a href="/help/locked-posts">Learn more</a>.++ </div>+ </div>+ </div>+ </div>+</aside>++ </div>++<p>I need to match all of these opening tags:</p>++<pre><code><p>+<a href="foo">+</code></pre>++<p>But not these:</p>++<pre><code><br />+<hr class="foo" />+</code></pre>++<p>I came up with this and wanted to make sure I've got it right. I am only capturing the <code>a-z</code>.</p>++<pre><code><([a-z]+) *[^/]*?>+</code></pre>++<p>I believe it says:</p>++<ul>+<li>Find a less-than, then</li>+<li>Find (and capture) a-z one or more times, then</li>+<li>Find zero or more spaces, then</li>+<li>Find any character zero or more times, greedy, except <code>/</code>, then</li>+<li>Find a greater-than</li>+</ul>++<p>Do I have that right? And more importantly, what do you think?</p>+ </div>++ <div class="mt24 mb12">+ <div class="post-taglist d-flex gs4 gsy fd-column">+ <div class="d-flex ps-relative fw-wrap">+ <ul class='ml0 list-ls-none js-post-tag-list-wrapper d-inline'><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/html" class="post-tag" title="show questions tagged 'html'" aria-label="show questions tagged 'html'" rel="tag" aria-labelledby="html-container">html</a></li><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/regex" class="post-tag" title="show questions tagged 'regex'" aria-label="show questions tagged 'regex'" rel="tag" aria-labelledby="regex-container">regex</a></li><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/xhtml" class="post-tag" title="show questions tagged 'xhtml'" aria-label="show questions tagged 'xhtml'" rel="tag" aria-labelledby="xhtml-container">xhtml</a></li></ul>+ </div>+ </div>+ </div>++ <div class="mb0 ">+ <div class="mt16 d-flex gs8 gsy fw-wrap jc-end ai-start pt4 mb16">+ <div class="flex--item mr16 fl1 w96">++++<div class="js-post-menu pt2" data-post-id="1732348">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/q/1732348"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this question"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 1 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this question"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="question"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="1"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1732348" class="s-btn s-btn__link js-follow-post js-follow-question js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 1 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this question to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>++ <div class="post-signature flex--item">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1732348/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 1 })">edited <span title='2012-05-26 20:37:05Z' class='relativetime'>May 26, 2012 at 20:37</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+ <div class="post-signature flex--item">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1732348" href="/posts/1732348/revisions" title="show revision history for this post">+ 11 revs, 7 users 58%<br><a href="/users/142233">Jeff</a>++ </a>+ </div>+</div>++ </div>+ </div>+ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1732348" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="1732348" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="false"+ data-comments-unavailable="true"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-1732348" data-rep=50 data-anon=true>+ <span class="disabled-link">Comments disabled on deleted / locked posts / reviews</span>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>++</div>+++<div class="js-zone-container zone-container-responsive">+ <div id="dfp-isb" class="everyonelovesstackoverflow everyoneloves__inline-sidebar mx-auto"></div>+ <div class="js-report-ad-button-container mx-auto" style="width: 300px"></div>+</div>++ <div id="answers">+ <a name="tab-top"></a>+ <div id="answers-header">+ <div class="answers-subheader d-flex ai-center mb8">+ <div class="flex--item fl1">+ <h2 class="mb0" data-answercount="35">+ 35 Answers+ <span style="display:none;" itemprop="answerCount">35</span>+ </h2>+ </div>+ <div class="flex--item">+++<div class="d-flex g4 gsx ai-center sm:fd-column sm:ai-start">+ <div class="d-flex fd-column ai-end sm:ai-start">+ <label class="flex--item fs-caption" for="answer-sort-dropdown-select-menu">+ Sorted by:+ </label>+ <a+ class="js-sort-preference-change s-link flex--item fs-fine d-none"+ data-value="ScoreDesc"+ href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?answertab=scoredesc#tab-top"+ >+ Reset to default+ </a>+ </div>+ <div class="flex--item s-select">+ <select id="answer-sort-dropdown-select-menu">+ <option+ value=scoredesc+ selected=selected+ >+ Highest score (default)+ </option>+ <option+ value=trending+ >+ Trending (recent votes count more)+ </option>+ <option+ value=modifieddesc+ >+ Date modified (newest first)+ </option>+ <option+ value=createdasc+ >+ Date created (oldest first)+ </option>+ </select>+ </div>+</div>+++ </div>+ </div>++ </div>++<div class="s-pagination site1 themed pager-answers">+<div class="s-pagination--item is-selected" aria-current="page">1</div>+<a class="s-pagination--item js-pagination-item" href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?page=2&tab=scoredesc#tab-top" rel="" title="Go to page 2">2</a>+<a class="s-pagination--item js-pagination-item" href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?page=2&tab=scoredesc#tab-top" rel="next" title="Go to page 2"> Next</a></div>+++<a name="1732454"></a>+<div id="answer-1732454" class="answer js-answer accepted-answer js-accepted-answer" data-answerid="1732454" data-parentid="1732348" data-score="4409" data-position-on-page="1" data-highest-scored="1" data-question-has-accepted-highest-score="1" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1732454">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="4409">+ 4409+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1732454"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1732454"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1732454/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+ <div>+ <aside class="s-notice s-notice__info post-notice js-post-notice mb16" role="status">+ <div class="d-flex fd-column fw-nowrap">+ <div class="d-flex fw-nowrap">+ <div class="flex--item mr8">+ <svg aria-hidden="true" class="svg-icon iconLock" width="18" height="18" viewBox="0 0 18 18"><path d="M16 9a2 2 0 0 0-2-2V6A5 5 0 0 0 4 6v1a2 2 0 0 0-2 2v6c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9Zm-7 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm3.1-7H5.9V6a3.1 3.1 0 0 1 6.2 0v1Z"/></svg>+ </div>+ <div class="flex--item wmn0 fl1 lh-lg">+ <div class="flex--item fl1 lh-lg">+ <b>Locked</b>. There are <a href="/help/locked-posts">disputes about this answer’s content</a> being resolved at this time. It is not currently accepting new interactions.++ </div>+ </div>+ </div>+ </div>+</aside>++ </div>++<p>You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-regexp will liquify the nerves of the sentient whilst you observe, your psyche withering in the onslaught of horror. Rege̿̔̉x-based HTML parsers are the cancer that is killing StackOverflow <i>it is too late it is too late we cannot be saved</i> the transgression of a chi͡ld ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) <i>dear lord help us how can anyone survive this scourge</i> using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes <i>using rege</i>x as a tool to process HTML establishes a brea<i>ch between this world</i> and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but <i>more corrupt) a mere glimp</i>se of the world of reg<b>ex parsers for HTML will ins</b>tantly transport a p<i>rogrammer's consciousness i</i>nto a w<i>orl</i>d of ceaseless screaming, he comes<strike>, the pestilent sl</strike>ithy regex-infection wil<b>l devour your HT</b>ML parser, application and existence for all time like Visual Basic only worse <i>he comes he com</i>es <i>do not fi</i>ght h<b>e com̡e̶s, ̕h̵i</b>s un̨ho͞ly radiańcé de<i>stro҉ying all enli̍̈́̂̈́ghtenment, HTML tags <b>lea͠ki̧n͘g fr̶ǫm ̡yo͟ur eye͢s̸ ̛l̕ik͏e liq</b>uid p</i>ain, the song of re̸gular expre<strike>ssion parsing </strike>will exti<i>nguish the voices of mor<b>tal man from the sp</b>here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful t</i>he f<code>inal snuf</code>fing o<i>f the lie<b>s of Man ALL IS LOŚ͖̩͇̗̪̏̈́T A</b></i><b>LL IS L</b>OST th<i>e pon̷y he come</i>s he c̶̮om<strike>es he co</strike><b><strike>me</strike>s t<i>he</i> ich</b>or permeat<i>es al</i>l MY FAC<i>E MY FACE ᵒh god n<b>o NO NOO̼</b></i><b>OO N</b>Θ stop t<i>he an*̶͑̾̾̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨ</i>e̠̅s<code> ͎a̧͈͖r̽̾̈́͒͑e</code> n<b>ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ T</b>O͇̹̺ͅƝ̴ȳ̳ TH̘<b>Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝</b>S̨̥̫͎̭ͯ̿̔̀ͅ</p>+<hr />+<p>Have you tried using an XML parser instead?</p>+<hr />+<blockquote>+<p><strong>Moderator's Note</strong></p>+<p>This post is locked to prevent inappropriate edits to its content. The post looks exactly as it is supposed to look - there are no problems with its content. Please do not flag it for our attention.</p>+</blockquote>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-13T23:04:30"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1732454">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1732454"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1732454" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1732454/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-11-12 14:21:18Z' class='relativetime'>Nov 12, 2020 at 14:21</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1732454" href="/posts/1732454/revisions" title="show revision history for this post">+ 10 revs, 6 users 24%<br><a href="/users/18936">bobince</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">2</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1732454" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1732454" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="false"+ data-comments-unavailable="true"+ data-addlink-disabled="true">++ <li id="comment-1612336" class="comment js-comment " data-comment-id="1612336" data-comment-owner-id="18936" data-comment-score="179">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">179</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Kobi: I think it's time for me to quit the post of Assistant Don't Parse HTML With Regex Officer. No matter how many times we say it, they won't stop coming every day... every hour even. It is a lost cause, which someone else can fight for a bit. So go on, parse HTML with regex, if you must. It's only broken code, not life and death.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/18936/bobince"+ title="520,261 reputation"+ class="comment-user">bobince</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2009-11-13 23:18:03Z, License: CC BY-SA 2.5' class='relativetime-clean'>Nov 13, 2009 at 23:18</span></span>+ </div>+ </div>+ </li>+ <li id="comment-1647711" class="comment js-comment " data-comment-id="1647711" data-comment-owner-id="68086" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">If you can't see this post, here's a screencapture of it in all its glory: <a href="http://imgur.com/gOPS2.png" rel="nofollow noreferrer">imgur.com/gOPS2.png</a></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/68086/andrew-keeton"+ title="21,277 reputation"+ class="comment-user">Andrew Keeton</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2009-11-19 14:37:27Z, License: CC BY-SA 2.5' class='relativetime-clean'>Nov 19, 2009 at 14:37</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1732454" data-rep=50 data-anon=true>+ <span class="disabled-link">Comments disabled on deleted / locked posts / reviews</span>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>++<div class="js-zone-container zone-container-main">+ <div id="dfp-mlb" class="everyonelovesstackoverflow everyoneloves__mid-leaderboard everyoneloves__leaderboard"></div>+ <div class="js-report-ad-button-container " style="width: 728px"></div>+</div>++<a name="1733489"></a>+<div id="answer-1733489" class="answer js-answer" data-answerid="1733489" data-parentid="1732348" data-score="3503" data-position-on-page="2" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1733489">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="3503">+ 3503+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1733489"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1733489"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>++<div class="js-bounty-award-container flex--item pb4">++ <div class="d-flex fd-column gs4 ai-center">++ <div class="js-bounty-award flex--item s-badge s-badge__bounty s-badge__sm as-center"+ title="This answer has been awarded bounties worth 50 reputation by ThiefMaster" data-controller="s-tooltip" data-s-tooltip-placement="right">+ +50+ </div>++ </div>+</div>++++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1733489/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>While <em>arbitrary</em> HTML with only a regex is impossible, it's sometimes appropriate to use them for parsing a <em>limited, known</em> set of HTML. </p>++<p>If you have a small set of HTML pages that you want to scrape data from and then stuff into a database, regexes might work fine. For example, I recently wanted to get the names, parties, and districts of Australian federal Representatives, which I got off of the Parliament's web site. This was a limited, one-time job. </p>++<p>Regexes worked just fine for me, and were very fast to set up.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-14T06:27:19"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1733489">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1733489"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1733489" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1733489/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2019-09-19 15:30:40Z' class='relativetime'>Sep 19, 2019 at 15:30</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1733489" href="/posts/1733489/revisions" title="show revision history for this post">+ 10 revs, 10 users 36%<br><a href="/users/210931">Kaitlin Duck Sherwood</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">6</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1733489" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1733489" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="1"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-13095248" class="comment js-comment " data-comment-id="13095248" data-comment-owner-id="173542" data-comment-score="151">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">151</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Also, scraping fairly regularly formatted data from large documents is going to be WAY faster with judicious use of scan & regex than any generic parser. And if you are comfortable with coding regexes, way faster to code than coding xpaths. And almost certainly less fragile to changes in what you are scraping. So bleh.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/173542/michael-johnston"+ title="5,248 reputation"+ class="comment-user">Michael Johnston</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-04-17 20:47:27Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 17, 2012 at 20:47</span></span>+ </div>+ </div>+ </li>+ <li id="comment-15088991" class="comment js-comment " data-comment-id="15088991" data-comment-owner-id="14122" data-comment-score="300">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">300</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@MichaelJohnston "Less fragile"? Almost certainly not. Regexes care about text-formatting details than an XML parser can silently ignore. Switching between <code>&foo;</code> encodings and <code>CDATA</code> sections? Using an HTML minifier to remove all whitespace in your document that the browser doesn't render? An XML parser won't care, and neither will a well-written XPath statement. A regex-based "parser", on the other hand...</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/14122/charles-duffy"+ title="267,231 reputation"+ class="comment-user">Charles Duffy</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-07-11 16:03:24Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 11, 2012 at 16:03</span></span>+ </div>+ </div>+ </li>+ <li id="comment-15115534" class="comment js-comment " data-comment-id="15115534" data-comment-owner-id="1090657" data-comment-score="44">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">44</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@CharlesDuffy for an one time job it's ok, and for spaces we use \s+</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/1090657/quantum"+ title="3,540 reputation"+ class="comment-user">quantum</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-07-12 13:50:01Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 12, 2012 at 13:50</span></span>+ </div>+ </div>+ </li>+ <li id="comment-15120388" class="comment js-comment " data-comment-id="15120388" data-comment-owner-id="14122" data-comment-score="78">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">78</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@xiaomao indeed, if having to know all the gotchas and workarounds to get an 80% solution that fails the rest of the time "works for you", I can't stop you. Meanwhile, I'm over on my side of the fence using parsers that work on 100% of syntactically valid XML.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/14122/charles-duffy"+ title="267,231 reputation"+ class="comment-user">Charles Duffy</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-07-12 16:07:28Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 12, 2012 at 16:07</span></span>+ </div>+ </div>+ </li>+ <li id="comment-16523188" class="comment js-comment " data-comment-id="16523188" data-comment-owner-id="122087" data-comment-score="419">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">419</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I once had to pull some data off ~10k pages, all with the same HTML template. They were littered with HTML errors that caused parsers to choke, and all their styling was inline or with <code><font></code> etc.: no classes or IDs to help navigate the DOM. After fighting all day with the "right" approach, I finally switched to a regex solution and had it working in an hour.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/122087/paul-a-jungwirth"+ title="22,570 reputation"+ class="comment-user">Paul A Jungwirth</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-09-07 07:14:38Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 7, 2012 at 7:14</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1733489" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>1</b> more comment</a>+ </div>+ </div>+ </div>+</div>+++<a name="1758162"></a>+<div id="answer-1758162" class="answer js-answer" data-answerid="1758162" data-parentid="1732348" data-score="2254" data-position-on-page="3" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1758162">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="2254">+ 2254+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1758162"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1758162"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>++<div class="js-bounty-award-container flex--item pb4">++ <div class="d-flex fd-column gs4 ai-center">++ <div class="js-bounty-award flex--item s-badge s-badge__bounty s-badge__sm as-center"+ title="This answer has been awarded bounties worth 100 reputation by Cole Tobin" data-controller="s-tooltip" data-s-tooltip-placement="right">+ +100+ </div>++ </div>+</div>++++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1758162/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I think the flaw here is that HTML is a <a href="http://en.wikipedia.org/wiki/Context-free_grammar" rel="noreferrer">Chomsky Type 2 grammar (context free grammar)</a> and a regular expression is a <a href="http://en.wikipedia.org/wiki/Regular_grammar" rel="noreferrer">Chomsky Type 3 grammar (regular grammar)</a>. Since a Type 2 grammar is fundamentally more complex than a Type 3 grammar (see the <a href="http://en.wikipedia.org/wiki/Chomsky_hierarchy" rel="noreferrer">Chomsky hierarchy</a>), you can't possibly make this work.</p>+<p>But many will try, and some will even claim success - but until others find the fault and totally mess you up.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-18T18:42:40"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1758162">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1758162"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1758162" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1758162/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2022-08-22 12:51:20Z' class='relativetime'>Aug 22 at 12:51</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1758162" href="/posts/1758162/revisions" title="show revision history for this post">+ 10 revs, 9 users 19%<br><a href="/users/22088">Vlad Gudim</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">11</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1758162" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1758162" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="6"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-12073546" class="comment js-comment " data-comment-id="12073546" data-comment-owner-id="423105" data-comment-score="262">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">262</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">The OP is asking to parse a very limited subset of XHTML: start tags. What makes (X)HTML a CFG is its potential to have elements between the start and end tags of other elements (as in a grammar rule <code>A -> s A e</code>). (X)HTML does <i>not</i> have this property <i>within</i> a start tag: a start tag cannot contain other start tags. The subset that the OP is trying to parse is not a CFG.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/423105/larsh"+ title="26,946 reputation"+ class="comment-user">LarsH</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-03-02 08:43:55Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 2, 2012 at 8:43</span></span>+ </div>+ </div>+ </li>+ <li id="comment-12448141" class="comment js-comment " data-comment-id="12448141" data-comment-owner-id="960195" data-comment-score="119">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">119</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">In CS theory, regular languages <i>are</i> a strict subset of context-free languages, but regular expression implementations in mainstream programming languages are more powerful. As <a href="http://www.noulakaz.net/weblog/2007/03/18/a-regular-expression-to-check-for-prime-numbers/" rel="nofollow noreferrer">noulakaz.net/weblog/2007/03/18/…</a> describes, so-called "regular expressions" can check for prime numbers in unary, which is certainly something that a regular expression from CS theory can't accomplish.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/960195/adam-mihalcin"+ title="13,912 reputation"+ class="comment-user">Adam Mihalcin</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-03-19 23:50:52Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 19, 2012 at 23:50</span></span>+ </div>+ </div>+ </li>+ <li id="comment-13885068" class="comment js-comment " data-comment-id="13885068" data-comment-owner-id="423105" data-comment-score="18">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">18</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@eyelidlessness: the same "only if" applies to all CFGs, does it not? I.e. if the (X)HTML input is not well-formed, not even a full-blown XML parser will work reliably. Maybe if you give examples of the "(X)HTML syntax errors implemented in real world user agents" you're referring to, I'll understand what you're getting at better.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/423105/larsh"+ title="26,946 reputation"+ class="comment-user">LarsH</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-05-22 05:09:22Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 22, 2012 at 5:09</span></span>+ </div>+ </div>+ </li>+ <li id="comment-14106691" class="comment js-comment " data-comment-id="14106691" data-comment-owner-id="272427" data-comment-score="93">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">93</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@AdamMihalcin is exactly right. Most extant regex engines are more powerful than Chomsky Type 3 grammars (eg non-greedy matching, backrefs). Some regex engines (such as Perl's) are Turing complete. It's true that even those are poor tools for parsing HTML, but this oft-cited argument is not the reason why.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/272427/dubiousjim"+ title="4,662 reputation"+ class="comment-user">dubiousjim</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-05-31 13:44:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 31, 2012 at 13:44</span></span>+ </div>+ </div>+ </li>+ <li id="comment-55574815" class="comment js-comment " data-comment-id="55574815" data-comment-owner-id="84206" data-comment-score="6">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">6</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">To say the grammar of language A dictates it's parsing capabilities of another language B based on its grammar, is not valid. For example, just because HTML is Chomsky Type 2 language, doesn't mean you could write pure HTML which could parse any Chomsky Type 3 language. HTML itself is not a language with any features that give it the ability to parse other languages. Please don't say "Javascript", because javascript is not parsed by something written in HTML.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/84206/aaronls"+ title="36,504 reputation"+ class="comment-user">AaronLS</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-11-24 23:54:55Z, License: CC BY-SA 3.0' class='relativetime-clean'>Nov 24, 2015 at 23:54</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1758162" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>6</b> more comments</a>+ </div>+ </div>+ </div>+</div>++<div class="js-zone-container zone-container-main">+ <div id="dfp-smlb" class="everyonelovesstackoverflow everyoneloves__mid-second-leaderboard everyoneloves__leaderboard"></div>+ <div class="js-report-ad-button-container " style="width: 728px"></div>+</div>++<a name="5236278"></a>+<div id="answer-5236278" class="answer js-answer" data-answerid="5236278" data-parentid="1732348" data-score="1501" data-position-on-page="4" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="5236278">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="1501">+ 1501+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-5236278"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="5236278"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/5236278/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Don't listen to these guys. You totally <strong>can</strong> parse context-free grammars with regex if you break the task into smaller pieces. You can generate the correct pattern with a script that does each of these in order:</p>+<ol>+<li>Solve the Halting Problem.</li>+<li>Square a circle.</li>+<li>Work out the <a href="https://en.wikipedia.org/wiki/Travelling_salesman_problem" rel="nofollow noreferrer">Traveling Salesman Problem</a> in O(log n) or less. If it's any more than that, you'll run out of RAM and the engine will hang.</li>+<li>The pattern will be pretty big, so make sure you have an algorithm that losslessly compresses random data.</li>+<li>Almost there - just divide the whole thing by zero. Easy-peasy.</li>+</ol>+<p>I haven't quite finished the last part myself, but I know I'm getting close. It keeps throwing <code>CthulhuRlyehWgahnaglFhtagnException</code>s for some reason, so I'm going to port it to VB 6 and use <code>On Error Resume Next</code>. I'll update with the code once I investigate this strange door that just opened in the wall. Hmm.</p>+<p>P.S. Pierre de Fermat also figured out how to do it, but the margin he was writing in wasn't big enough for the code.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-03-08T17:49:29"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="5236278">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/5236278"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-5236278" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/5236278/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2022-11-07 22:45:58Z' class='relativetime'>Nov 7 at 22:45</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Mar 8, 2011 at 17:49. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-5236278" href="/posts/5236278/revisions" title="show revision history for this post">+ 11 revs, 2 users 97%<br><a href="/users/399649">Justin Morgan</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">18</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-5236278" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="5236278" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="13"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-14424307" class="comment js-comment " data-comment-id="14424307" data-comment-owner-id="3408" data-comment-score="96">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">96</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Divison by zero is a much easier problem than the others you mention. If you use intervals, rather than plain floating point arithmetic (which everyone should be but nobody is), you can happily divide something by [an interval containing] zero. The result is simply an interval containing plus and minus infinity.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/3408/rjmunro"+ title="26,525 reputation"+ class="comment-user">rjmunro</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-06-14 10:53:39Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jun 14, 2012 at 10:53</span></span>+ </div>+ </div>+ </li>+ <li id="comment-21359004" class="comment js-comment " data-comment-id="21359004" data-comment-owner-id="820321" data-comment-score="180">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">180</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Fermat's small margin problem has been solved by soft margins in modern text-editing software.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/820321/kd4ttc"+ title="1,088 reputation"+ class="comment-user">kd4ttc</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-03-01 20:24:32Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 1, 2013 at 20:24</span></span>+ </div>+ </div>+ </li>+ <li id="comment-41473537" class="comment js-comment " data-comment-id="41473537" data-comment-owner-id="401828" data-comment-score="65">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">65</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Fermat's small margin problem has been solved by Randall Munroe by setting the fontsize to zero: <a href="http://xkcd.com/1381/" rel="nofollow noreferrer">xkcd.com/1381</a></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/401828/heltonbiker"+ title="25,659 reputation"+ class="comment-user">heltonbiker</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2014-10-16 19:55:17Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 16, 2014 at 19:55</span></span>+ </div>+ </div>+ </li>+ <li id="comment-44568333" class="comment js-comment " data-comment-id="44568333" data-comment-owner-id="202504" data-comment-score="40">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">40</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">FYI: Fermat's problem <a href="https://en.wikipedia.org/wiki/Wiles%27_proof_of_Fermat%27s_Last_Theorem" rel="nofollow noreferrer">has <i>actually</i> been solved in 1995</a>, and it only took mathematicians 358 years to do so.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/202504/jmiserez"+ title="2,872 reputation"+ class="comment-user">jmiserez</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-01-22 18:40:17Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jan 22, 2015 at 18:40</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-59460768" class="comment js-comment " data-comment-id="59460768" data-comment-owner-id="880904" data-comment-score="13">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">13</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I was able to bypass that sticky divide-by-zero step by instead using Brownian ratchets yielded from cold fusion...though it only works when I remove the cosmological constant.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/880904/tim-lehner"+ title="14,492 reputation"+ class="comment-user">Tim Lehner</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-03-09 18:52:43Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 9, 2016 at 18:52</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-5236278" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>13</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="1736801"></a>+<div id="answer-1736801" class="answer js-answer" data-answerid="1736801" data-parentid="1732348" data-score="1146" data-position-on-page="5" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1736801">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="1146">+ 1146+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1736801"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1736801"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1736801/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p><strong>Disclaimer</strong>: use a parser if you have the option. That said...</p>++<p>This is the regex I use (!) to match HTML tags:</p>++<pre><code><(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>+</code></pre>++<p>It may not be perfect, but I ran this code through a <em>lot</em> of HTML. Note that it even catches strange things like <code><a name="badgenerator""></code>, which show up on the web.</p>++<p>I guess to make it not match self contained tags, you'd either want to use <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732395#1732395">Kobi</a>'s negative look-behind:</p>++<pre><code><(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+(?<!/\s*)>+</code></pre>++<p>or just combine if and if not.</p>++<p><strong>To downvoters:</strong> This is working code from an actual product. I doubt anyone reading this page will get the impression that it is socially acceptable to use regexes on HTML. </p>++<p><strong>Caveat</strong>: I should note that this regex still breaks down in the presence of CDATA blocks, comments, and script and style elements. Good news is, you can get rid of those using a regex... </p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-15T06:37:18"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1736801">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1736801"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1736801" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1736801/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2017-05-23 12:34:53Z' class='relativetime'>May 23, 2017 at 12:34</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1736801" href="/posts/1736801/revisions" title="show revision history for this post">+ 5 revs, 2 users 92%<br><a href="/users/7581">itsadok</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">9</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1736801" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1736801" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="4"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-13616563" class="comment js-comment " data-comment-id="13616563" data-comment-owner-id="1176394" data-comment-score="116">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">116</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I would go with something that works on sane things than weep about not being universally perfect :-)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/1176394/prajeesh-kumar"+ title="1,896 reputation"+ class="comment-user">prajeesh kumar</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-05-10 03:44:49Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 10, 2012 at 3:44</span></span>+ </div>+ </div>+ </li>+ <li id="comment-22995936" class="comment js-comment " data-comment-id="22995936" data-comment-owner-id="639353" data-comment-score="22">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">22</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">so you do not actually solve the parsing problem with regexp only but as a part of the parser this may work. PS: working product doesn't mean good code. No offence, but this is how industrial programming works and gets their money</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/639353/mishmashru"+ title="449 reputation"+ class="comment-user">mishmashru</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-04-19 12:18:30Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 19, 2013 at 12:18</span></span>+ </div>+ </div>+ </li>+ <li id="comment-35875284" class="comment js-comment " data-comment-id="35875284" data-comment-owner-id="-1" data-comment-score="40">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">40</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Your regex starts fail on the very shortest possible, valid HTML: <code><!doctype html><title><</title></code>. Simple <code>'<!doctype html><title><</title>'.match(/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g)</code> returns <code>["<!doctype html>", "<title>", "<</title>"]</code> while should <code>["<title>", "</title>"]</code>.</span>++ <div class="d-inline-flex ai-center">+– <span class="comment-user">user1180790</span>+ </div>+ <span class="comment-date" dir="ltr"><span title='2014-05-01 16:48:11Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 1, 2014 at 16:48</span></span>+ </div>+ </div>+ </li>+ <li id="comment-36631031" class="comment js-comment " data-comment-id="36631031" data-comment-owner-id="358236" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">if we're just trying to match & not match the examples given, /<.([^r>][^>]*)?>/g works :-) // javascript: '<p> <a href="foo"> <br /> <hr class="foo" />'.match(/<.([^r>][^>]*)?>/g)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/358236/imma"+ title="4,892 reputation"+ class="comment-user">imma</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2014-05-22 16:14:26Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 22, 2014 at 16:14</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-54059485" class="comment js-comment " data-comment-id="54059485" data-comment-owner-id="282601" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">"Is someone using CDATA inside HTML?" - yes, I do. It takes less bytes if you show HTML source code in <code><pre></code> tags.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/282601/cweiske"+ title="29,211 reputation"+ class="comment-user">cweiske</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-10-14 10:56:16Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 14, 2015 at 10:56</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1736801" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>4</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="5233151"></a>+<div id="answer-5233151" class="answer js-answer" data-answerid="5233151" data-parentid="1732348" data-score="567" data-position-on-page="6" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="5233151">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="567">+ 567+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-5233151"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="5233151"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/5233151/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>There are people that will tell you that the Earth is round (or perhaps that the Earth is an oblate spheroid if they want to use strange words). They are lying.</p>+<p>There are people that will tell you that Regular Expressions shouldn't be recursive. They are limiting you. They need to subjugate you, and they do it by keeping you in ignorance.</p>+<p>You can live in their reality or take the red pill.</p>+<p>Like Lord Marshal (is he a relative of the Marshal .NET class?), I have seen the <strike>Underverse</strike> Stack Based Regex-Verse and returned with <strike>powers</strike> knowledge you can't imagine. Yes, I think there were an Old One or two protecting them, but they were watching football on the TV, so it wasn't difficult.</p>+<p>I think the XML case is quite simple. The RegEx (in the .NET syntax), deflated and coded in base64 to make it easier to comprehend by your feeble mind, should be something like this:</p>+<pre><code>7L0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1pRyMpqyqBymVWZV1mFkDM7Z28+995777333nvvvfe6O51OJ/ff/z9cZmQBbPbOStrJniGAqsgfP358Hz8itn6Po9/3eIue3+Px7/3F+86enJ8+/fHn64ujx7/t7vFuUd/Dx65fHJ6dHW9/7fd/t7fy+73Ye0v+f0v+Pv//JnTvureM3b169+OP7i9Ogyr5uiWt746u+BBqc/8dXx86PP7tzU9mfQ9tWrL18d3UGnW/z7nZ9htH/y9NXrsy9fvPjq+i5/46ss3p4z+x3e8b452f9/x93a2HxIkH44PpgeFyPD6lMAEHUdbcn8ffTP9fdTrz/8rBPCe05Iv+p9WsWF788Obl9MXJl0/PXnwONLozY747+t7x9k9l2z/4vv4kqo1//993+/vf2kC5HtwNcxXH4aOf+LRw2z9/v8WEz2LTZcpaV1TL/4c3h66ex2Xv95vjF0+PnX744PbrOm59ZVhso5UHYME/dfj768H7e+Yy5uQUydDAH9+/4eR11wHbqdfPnFF6cv3ogq/V23t++4z4620A13cSzd7O1s/77rpw+ePft916c7+O/jj2bNnT7e/t/397//M9+ibA/7s6ZNnz76PP0/kT2rz/Ts/s/0NArvziYxVEZWxbm93xsrUfnlm+rASN7Hf93u/97vvf+2Lx/e89L7+/FSXiz4Bkd/hF5mVq9Yik7fcncft9350QCu+efkr/P6BfntEv+z+iX9c4eBrFz7wEwpB9P+d9n9MfuM3yzt7Nzss0/nuJfbra3e4BvZFR7z07pj3s7O7uWJM8eCkme+nuCPp88MfW6kDeH7+26PSTX8vu+ePAAiO4LVp4zIPWC1t7O/8/+pMX3rzo2KhL7+8s23T1/RhP0e+vyvm8HbsdmPXYDVhtpdnAzJ1k1jeufOtUAM8ffP06Zcnb36fl6dPXh2f/F6nRvruyHfMd9rgJp0Y+gvsRx/6/ZUzfCtX4e5hTndGzp5jQo9e/z+s3p1/czAUMlts+P3tz+uo4tISd745uJxvb3/v4ZlWs+mrjfd9SG/swGPD/6+nh+9MF4brTBRmh1Tl5+9eT52ckt5oR0xldPzp7GR8pfuXf5PWJv4nJIwvbH+W3c+GY3vPvrs9zj8Xb/147/n7/b7/+52DD2gsSH8zGDvH9+i9/fu/PftTfTXYf5hB+9H7P1BeG52+MTtu4S2cTAjDizevv3ry+vSNb8N+3+/1po2anj4/hZsGt3TY4GmjYbEKDJ62/pHB+3/LmL62wdsU+1J18+eINzTJr3dMvXr75fX7m+MXvY9XxF2e/9+nTgPu2bgwh5U0f7u/74y9Pnh6/OX4PlA2UlwTn+xenJG8L996VhbP3++PCrV68QkrjveITxr2TIt+lL+f3k22fPn/6I6f/fMqZvqXN/K4Xps6sazUGZ+GeQlar49xEvajzI35VRevDl78/sc/b7f6jkG8Va/x52N4L9lBe/kZSh1hr9fPj19+ebbR4AifyuY+12efv5CgGh9TroR6Pj2l748iYxYgN8Z7pr0HzRLg66FnRvcjUft/45i+pRP08vTV6TOe2N/9jv37+R9P0/5YxbXQDeK5E9R12XdDA/4zop+/9Ht/65PtsDVlBBUqko986WsDoWqvbPD2gH/T01DAC1NVn+3/uZ0feZ+T77fd/GVMkA4KjeMcg6RcvQLRl8HyPaWVStdv17PwHV0bOB9xUh7rfMp5Zu3icBJp25+D6f0NhayHyfI3HXHY6YYCw7Pz17fEFhQKzS6ZWChrX+kUf7fMqavHViEPPKjCf1/y5hukcyPTvjP+mHQCppRDN4nbVFPaT8+ekpV5/TP8g/79mVPo77PT1/LL7/MzL7548+XvdfritflFY00fxIsvSQPS+mvctdYZpbt7vxKRfj3018OvC/hEf/79lTBvM3debWj+b8KO0wP+3OeM2aYHumuCAGonmCrxw9cVX+X1C2d4P+uSU7eoBUMzI3/f9udjbYl/el04dI7s8fan8dWRjm6gFx+NrKeFP+WX0CxBdPT58df/X8+DaWLX53+xFdnr06f/szv++NnX7x8fnb6NAhIwsbPkPS7iSUQAFETvP2Tx8+/Og0Xt/yBvDn9vd/c+etno8S+81QKXptq/ffzKZFZ+4e/743e8zxino+8RX37/k595h5/H28+y7fPv490hQdJ349E+txB3+zPZ5J/jsR8bs/y1j2hh/2fkayOqEmYcej0cXUWMN7QrqBwjDrVZRfyQM3xjj/EgYvo4wfLTZrnVS+ebdKq0XSZJvzajKQDUv1/P3NwbEP7cN5+Odivv9/ysPfhHfkOP6b9Fl+91v7LD9aCvp/+Zi+7lLQ+j0zwNzYFP+/Y6r1NcFeDbfBIo8rug3zS3/3WPumPlN3/y8f0I2X3cz4FP+/Y6htSdr2I42fEuSPX+/ewpL4e9/n1evzn94hb+Plpw2+dnbyh79zx0CsPvbq0lb+UQ/h7xvqPq/Gc24PnR18fzVrp8I57d+mehj7ebk5VdPnp+d3GJOSP189eTsaXyk/JV7l98j4SAZgRxtf7x155PR+O6jz36Pw9/1Wz/+e/5u+v//vbsfQAxobws8M9v7xLXp/785/395ED4nO1wx5fsTeH4LnRva+eYY8rpZUBFb/j/jfm8XAvfEj+4/b/ljF1F9B/jx5PhAkp1nu/+y3n+kdZp/93jWmjJ/M11TG++VEG6puZn593PPejoOyHMQU/79jq+GwrKfpSB+tmcwZ93XPkjZffDmIKfd2z1DSm7bmCoPPmjBNT74XkrVf71I/Sf6wTU7XJA4RB+lIC6+mW1+xN5GWw1/683C5rnj/m364cmr45Pf6/SN9H4Us4LISn355vjN2ZcvtDGT6fHvapJcMISmxc0K+MAD4IyP6/5Yx/SwkP360FvD1VTH191mURr/HUY+2P3I9boPnz7Ju/pHrcWPnP3I9/r/L3sN0v52z+0fEgNrgbL8/Evfh9fw/q5Xf93u/97vvf+2Lx/e89L7+/Fe3iZ37f34P5h178kTfx/5YxfUs8vY26+7/d4/OWbb5++ogn7PX5XzOHtOP3GrsHmqobOVO/8Hh1Gk/TPl198QS6w+rLb23fcZ0fMaTfjsv29+7Zul7me2v0FgRoYVURnf9nZEkDD+H2VDf8hjeq8xff1s6GbButNLacEtefHm9VdPXp++CRTw7/v9+r6vW8b9eJ0+/PIHzs1HHdyKE/x9L4Y+s2f+PJPX/1dbsJn3wrY6wiqv85vjVm9Pnp+DgN8efM5va+j794+eb36Xz3mAf5+58+f3r68s230dRvJcxKn/l//oh3f+7H9K2O0r05PXf85s2rH83f/1vGdAvd+w+qBFqsoWvzspozD77EpXYeZ7yzdfxy0ec+l+8e/8FbR84+Wd78xbvn/qQQMz/J7L++GPB7N0MQa+2vTMBwjDrVI0PxKGb4xxfiQMX0cYPuq/Fbx2C1sU8yEF+F34iNsx1xOGa9t6l/yX70uqmxu+qBGm+AxlxWwVS11O97ULqlsFIUvUnT4/fHIuL//3f9/t9J39Y9m8W/Tuc296yUeX/b0PiHwUeP1801Y8C+j/9vz9+PAo8f+Vq35Jb/n0rAz7Kv9aPA40fC8P+RMf3sC8PP08DjR1L3DXHoj6SuIz/CCghZNZb8+fb/Hf/2+37tjvuBY9vu3jmRvxNeGgQAuaAF6Pwj8/+e66M8/7rwpRNj6uVwXZRl52k0n3FVl95Q+++fz0KSu73/dtkGDYdvZgSP5uskadrtViRKyal2IKAiQfiW+FI+tET/9/Txj9SFf8SFf8rOuKzagx++r/vD34mUADO1P4/AQAA//8=+</code></pre>+<p>The options to set is <code>RegexOptions.ExplicitCapture</code>. The capture group you are looking for is <code>ELEMENTNAME</code>. If the capture group <code>ERROR</code> is not empty then there was a parsing error and the Regex stopped.</p>+<p>If you have problems reconverting it to a human-readable regex, this should help:</p>+<pre class="lang-csharp prettyprint-override"><code>static string FromBase64(string str)+{+ byte[] byteArray = Convert.FromBase64String(str);++ using (var msIn = new MemoryStream(byteArray))+ using (var msOut = new MemoryStream()) {+ using (var ds = new DeflateStream(msIn, CompressionMode.Decompress)) {+ ds.CopyTo(msOut);+ }++ return Encoding.UTF8.GetString(msOut.ToArray());+ }+}+</code></pre>+<p>If you are unsure, no, I'm NOT kidding (but perhaps I'm lying). It WILL work. I've built tons of unit tests to test it, and I have even used (part of) the <a href="http://www.w3.org/XML/Test/" rel="noreferrer">conformance tests</a>. It's a tokenizer, not a full-blown parser, so it will only split the XML into its component tokens. It won't parse/integrate DTDs.</p>+<p>Oh... if you want the source code of the regex, with some auxiliary methods:</p>+<p><a href="http://pastebin.com/hzYazFVb" rel="noreferrer">regex to tokenize an xml</a> or <a href="https://topaz.github.io/paste/#XQAAAQD5hQAAAAAAAAAUD8Q6Ijb26igjgaUO/S4VLr/Od1fatGY8ycZ79EV23K5OCMWdbg2gH+s7o5uxCPlMSN1JtgtVM2MKR6CqK1eEDhtb5JZyw5spb/FtqvAc3ed4JkSFjzVZF7RTA0u9sRtmbSyVgOdqUpqnibi1CDqHGXGOzOlBKLxSopincGbR0sbzm+mA3nrgLtwe1kqAj3MWoPyOrU8e7ipjvkI+e0LALD6uam6dq+hXtGQJ8LYSeoUpKjGW3LDV7Oh3mE3OBu9AaQF7PiSsUTC2b/AqI1rEOqBWwwkUevXnMnpPYZ+FlYhJ4zgvOyR3YStbExN6Q8h79n9w8lEqI1rr4B2xDaqTgsFd+rg0Iu3S3aaRhII9wdUaipKiEKuDujWemedqT6P+ohRi9CC/lGr8Kz5+QlErsB/97LiffPcTizNflkF8TnInJba8R0w9nhL70OX9IijnRbrHYLnEK62mliz7JFFmSWu9KqzbyrC+OkAQIi0hdmLzITt7lz8OCUKWocUyBeP3JSgXOGX/P8sw3WF6q6QBu0XmN4EgtHfcBb130ewOQ34MhCEw8q79ycePiduoP7MlbzbG5Iw8202AlrfjFp96dawcaALWOIMDGEaM7X1ZC5RFAfcpHNLu/KxctKOoyhIzYWS+LTMMPBx13L4IYXiDysJuG4acbJiDiKfla4i8Z0QGrPLvF7/1A5ufy7yLck9adE1aXZUD7yxX6qXICx+Ue6Fq+PHDslFeU6Q74LWjj/tu8CGM55EMItBrpz5EcTgeoBxNuA/vrYi/Ybm7hMscw/pYGL9RG5H+ok3OzKrWdjintjxvVV+cGNWsN/LNWC3bGp5OJaArP5OCehsMwcAQMQkNi8cpSX+cP6nRaV5nO/5borKcXufMdw8g1zmgTqul+0qISwn3MNK/Y0Qd+KgBIumvIUQT1HzLpbehbjAkYFg+PBUr4BPDAGiEN+lvtSsn3R3yFMyX0TcYe0a5dSBSMpq4P/ZCRJy+2pFLvtIMYJwph34zhLPJOoFK0LiiT+Vgt4yjHLQwGfzSug2oT5TaUAFwOWY2SeTxb5SfaxTB+DX8B+jhlX2DvEVV/EUWcoEkImMx1v9u+yuIshY69ikFaZfcrcCFPRLu6RVog+sLNgXuk/Q+OnoUuoeok367pwuiw26/byFpSFogS2DIRIG2J3agwqa0XPtcHY2j3H2niOigKaOX1oeansYqIjvGykcysm43IhAR2QEcoPKZOhi1bwSwpP98hpin+dkVJDD8f0w/ipDIMpIDRTv45VQWAzdK4yLqaauZRR76QeiAi618bOSiO0LnUYcbyRsU32v9UJ5LMZjzKo/trYrBgY/F4rZG6X+GSl03MbbQM3CHqo1iNc9voknMrNfmuSb7eGB2sNN/B5l0fk57pspZsJ2EuE1v5NtBjwrS9qMQzehoE7sh5YxbNyj9x44FSZDbV/2PXhAgkVZ63td5m8AfPngjAReF4bTvL/rlIWMCbJL6IQKAt2jH4l4wpfFm0qssBl2vdsfNXPhTzRWbB+UPJmxUBGv8YF0rd4Ol3SpuF8fF368DUP96pt96T8W56LIhPULh6yECYWX83QwMyoEvkcgeEJIEm08InYo7UWKRiQml0BTb+YOcy+V20V+k+YAZM2hEjbTNNnXqCvtmVytw1fA6OESzlpcOWzmFwKqwhRAtRJ+Z/YhQLhC7J1xdbFc3cG9hihArqtMRXCCFLcf24zl5rhtV9NJRZdn56s2qspoMtk8m+vGXaLFKdt3j8O5KEaPCILeUbXLS6gtm+ByiGuIF4GWAWcstCh0IQ5j+0J/+5SRp27y/Q0kvZNhD/HrqNmONDE6h7qaE6fKrhrmCLo8XcM59eiEeJuO/KWSDVbpwaDhrx+DS0ngI5TeWmAliRXYUISI/B+hhjFwawuXlK1FAm0Ohyf6XBo4dwoU/SYOHva8wB2qiPlVCvRvs7vK9FkWQjzNw0v/sDHy+nd49LiIdJkvBPsYS72H/E7kLt7P7WVJgpENY4AqXXGtZ6/L5lcByXgFxDgZbiWMKf1GCfb5QNLauPHZBjxI45JvZsDlG3sUaHwnRyYLiDE+ly+w53l2GgVX4wpPQ1JPjCIvLJ8fmKy4B5HOC5uJYTfUyjAeKP5aIloVVGESb8SGbXRfcme11BZmPyBvjivWZ8kABDh6aKGZdUZCvMnlbZnwKYUWl1ZSFi5AMlw0nEu9pFy5h/AIE+yRTioJ9VYn7ZC4njk5p7V7g+ynr8xGDRAcwLQPVUuCVCDVDSx1eGfWa6IT9G6aVHA1+SHx+sPvHNmWCMYpYWPY5b6l5DYXlTPqChQBwMxcGQnusdNEsEvQYV4FBJhYjgLMxfjBoLPPvysNmpg+qItxnBaDZgMEFa4I3Ek1e7f412UaMloHzTKuzotNQE3quvOH0/9zORWQ=" rel="noreferrer">the full plain regex</a></p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-03-08T13:30:46"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="5233151">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/5233151"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-5233151" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/5233151/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2021-11-10 00:06:17Z' class='relativetime'>Nov 10, 2021 at 0:06</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Mar 8, 2011 at 13:30. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-5233151" href="/posts/5233151/revisions" title="show revision history for this post">+ 13 revs, 11 users 68%<br><a href="/users/613130">xanatos</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">26</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-5233151" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="5233151" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="21"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-5890472" class="comment js-comment " data-comment-id="5890472" data-comment-owner-id="446591" data-comment-score="67">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">67</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">not-sure-if-serious.jpg -- hopefully this is brilliant satire</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/446591/brad-mace"+ title="26,775 reputation"+ class="comment-user">Brad Mace</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-03-08 14:53:31Z, License: CC BY-SA 2.5' class='relativetime-clean'>Mar 8, 2011 at 14:53</span></span>+ </div>+ </div>+ </li>+ <li id="comment-5890952" class="comment js-comment " data-comment-id="5890952" data-comment-owner-id="399649" data-comment-score="83">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">83</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Good Lord, it's massive. My biggest question is why? You realize that all modern languages have XML parsers, right? You can do all that in like 3 lines and be sure it'll work. Furthermore, do you also realize that pure regex is <b>provably</b> unable to do certain things? Unless you've created a hybrid regex/imperative code parser, but it doesn't look like you have. Can you compress random data as well?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/399649/justin-morgan"+ title="29,345 reputation"+ class="comment-user">Justin Morgan</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-03-08 15:23:45Z, License: CC BY-SA 2.5' class='relativetime-clean'>Mar 8, 2011 at 15:23</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-5891077" class="comment js-comment " data-comment-id="5891077" data-comment-owner-id="613130" data-comment-score="142">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">142</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Justin I don't need a reason. It could be done (and it wasn't illegal/immoral), so I have done it. There are no limitations to the mind except those we acknowledge (Napoleon Hill)... Modern languages can parse XML? Really? And I thought that THAT was illegal! :-)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/613130/xanatos"+ title="107,741 reputation"+ class="comment-user">xanatos</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-03-08 15:31:34Z, License: CC BY-SA 2.5' class='relativetime-clean'>Mar 8, 2011 at 15:31</span></span>+ </div>+ </div>+ </li>+ <li id="comment-5893435" class="comment js-comment " data-comment-id="5893435" data-comment-owner-id="399649" data-comment-score="91">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">91</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Sir, I'm convinced. I'm going to use this code as part of the kernel for my perpetual-motion machine--can you believe those fools at the patent office keep rejecting my application? Well, I'll show them. I'll show them all!</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/399649/justin-morgan"+ title="29,345 reputation"+ class="comment-user">Justin Morgan</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-03-08 17:55:54Z, License: CC BY-SA 2.5' class='relativetime-clean'>Mar 8, 2011 at 17:55</span></span>+ </div>+ </div>+ </li>+ <li id="comment-11735313" class="comment js-comment " data-comment-id="11735313" data-comment-owner-id="244811" data-comment-score="41">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">41</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">No, nothing is bug free: 1) All programs contain at least one bug. 2) All programs contain at least one line of unnecessary source code. 3) By #1 and #2 and using logical induction, it's a simple matter to prove that any program can be reduced to a single line of code with a bug. (from Learning Perl)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/244811/scott-weaver"+ title="7,010 reputation"+ class="comment-user">Scott Weaver</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-02-16 00:53:34Z, License: CC BY-SA 3.0' class='relativetime-clean'>Feb 16, 2012 at 0:53</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-5233151" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>21</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="2263520"></a>+<div id="answer-2263520" class="answer js-answer" data-answerid="2263520" data-parentid="1732348" data-score="315" data-position-on-page="7" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="2263520">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="315">+ 315+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-2263520"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="2263520"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/2263520/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>In shell, you can parse <a href="https://en.wikipedia.org/wiki/HTML" rel="noreferrer">HTML</a> using <a href="https://en.wikipedia.org/wiki/Sed" rel="noreferrer">sed</a>:</p>++<ol>+<li><a href="http://sed.sourceforge.net/grabbag/scripts/turing.sed" rel="noreferrer">Turing.sed</a></li>+<li>Write HTML parser (homework)</li>+<li>???</li>+<li>Profit!</li>+</ol>++<hr>++<p>Related (why you shouldn't use regex match):</p>++<ul>+<li><a href="https://blog.codinghorror.com/if-you-like-regular-expressions-so-much-why-dont-you-marry-them/" rel="noreferrer">If You Like Regular Expressions So Much, Why Don't You Marry Them?</a></li>+<li><a href="https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/" rel="noreferrer">Regular Expressions: Now You Have Two Problems</a></li>+<li><a href="http://danlec.com/blog/hacking-stackoverflow-com-s-html-sanitizer" rel="noreferrer">Hacking stackoverflow.com's HTML sanitizer</a></li>+</ul>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-02-15T00:55:24"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="2263520">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/2263520"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-2263520" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/2263520/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2019-04-23 16:44:36Z' class='relativetime'>Apr 23, 2019 at 16:44</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Feb 15, 2010 at 0:55. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-2263520" href="/posts/2263520/revisions" title="show revision history for this post">+ 10 revs, 7 users 43%<br><a href="/users/55075">kenorb</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">7</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-2263520" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="2263520" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="2"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-54010279" class="comment js-comment " data-comment-id="54010279" data-comment-owner-id="2157640" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I’m afraid you did not get the joke, @kenorb. Please, read the question and the accepted answer once more. This is not about HTML parsing tools in general, nor about HTML parsing shell tools, it’s about parsing HTML via regexes.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/2157640/palec"+ title="12,013 reputation"+ class="comment-user">Palec</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-10-13 08:12:01Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 13, 2015 at 8:12</span></span>+ </div>+ </div>+ </li>+ <li id="comment-73090810" class="comment js-comment " data-comment-id="73090810" data-comment-owner-id="2157640" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">No, @Abdul. It is completely, provably (in the mathematical sense) impossible.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/2157640/palec"+ title="12,013 reputation"+ class="comment-user">Palec</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2017-03-24 13:24:19Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 24, 2017 at 13:24</span></span>+ </div>+ </div>+ </li>+ <li id="comment-73093275" class="comment js-comment " data-comment-id="73093275" data-comment-owner-id="2157640" data-comment-score="5">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">5</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Yes, that answer summarizes it well, @Abdul. Note that, however, regex implementations are not really <i>regular</i> expressions in the mathematical sense -- they have constructs that make them stronger, often Turing-complete (equivalent to Type 0 grammars). The argument breaks with this fact, but is still somewhat valid in the sense that regexes were never meant to be capable of doing such a job, though.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/2157640/palec"+ title="12,013 reputation"+ class="comment-user">Palec</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2017-03-24 14:24:35Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 24, 2017 at 14:24</span></span>+ </div>+ </div>+ </li>+ <li id="comment-73093363" class="comment js-comment " data-comment-id="73093363" data-comment-owner-id="2157640" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">And by the way, the joke I referred to was the content of this answer before kenorb's (radical) edits, specifically revision 4, @Abdul.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/2157640/palec"+ title="12,013 reputation"+ class="comment-user">Palec</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2017-03-24 14:26:48Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 24, 2017 at 14:26</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-86127667" class="comment js-comment " data-comment-id="86127667" data-comment-owner-id="11906" data-comment-score="10">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">10</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">The funny thing is that OP never asked to parse html using regex. He asked to match text (which happens to be HTML) using regex. Which is perfectly reasonable.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/11906/paralife"+ title="6,066 reputation"+ class="comment-user">Paralife</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2018-03-29 15:29:49Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 29, 2018 at 15:29</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-2263520" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>2</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="7564061"></a>+<div id="answer-7564061" class="answer js-answer" data-answerid="7564061" data-parentid="1732348" data-score="289" data-position-on-page="8" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="7564061">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="289">+ 289+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-7564061"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="7564061"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/7564061/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I agree that the right tool to parse XML and <em>especially HTML</em> is a parser and not a regular expression engine. However, like others have pointed out, sometimes using a regex is quicker, easier, and gets the job done if you know the data format.</p>++<p>Microsoft actually has a section of <a href="https://learn.microsoft.com/dotnet/standard/base-types/best-practices" rel="noreferrer">Best Practices for Regular Expressions in the .NET Framework</a> and specifically talks about <a href="https://learn.microsoft.com/dotnet/standard/base-types/best-practices#consider-the-input-source" rel="noreferrer">Consider[ing] the Input Source</a>.</p>++<p>Regular Expressions do have limitations, but have you considered the following?</p>++<p>The .NET framework is unique when it comes to regular expressions in that it supports <a href="https://learn.microsoft.com/dotnet/standard/base-types/grouping-constructs-in-regular-expressions#balancing_group_definition" rel="noreferrer">Balancing Group Definitions</a>.</p>++<ul>+<li>See <a href="https://weblogs.asp.net/whaggard/377025" rel="noreferrer">Matching Balanced Constructs with .NET Regular Expressions</a></li>+<li>See <a href="https://learn.microsoft.com/archive/blogs/bclteam/net-regular-expressions-regex-and-balanced-matching-ryan-byington" rel="noreferrer">.NET Regular Expressions: Regex and Balanced Matching</a></li>+<li>See Microsoft's docs on <a href="https://learn.microsoft.com/dotnet/standard/base-types/grouping-constructs-in-regular-expressions#balancing_group_definition" rel="noreferrer">Balancing Group Definitions</a></li>+</ul>++<p>For this reason, I believe you CAN parse XML using regular expressions. Note however, that it <strong>must be valid XML</strong> (<em>browsers are very forgiving of HTML and allow bad XML syntax inside HTML</em>). This is possible since the "Balancing Group Definition" will allow the regular expression engine to act as a PDA.</p>++<p>Quote from article 1 cited above:</p>++<blockquote>+ <p><strong>.NET Regular Expression Engine</strong></p>++ <p>As described above properly balanced constructs cannot be described by+ a regular expression. However, the .NET regular expression engine+ provides a few constructs that allow balanced constructs to be+ recognized. </p>++ <ul>+ <li><code>(?<group>)</code> - pushes the captured result on the capture stack with+ the name group.</li>+ <li><code>(?<-group>)</code> - pops the top most capture with the name group off the+ capture stack.</li>+ <li><code>(?(group)yes|no)</code> - matches the yes part if there exists a group+ with the name group otherwise matches no part.</li>+ </ul>++ <p>These constructs allow for a .NET regular expression to emulate a+ restricted PDA by essentially allowing simple versions of the stack+ operations: push, pop and empty. The simple operations are pretty much+ equivalent to increment, decrement and compare to zero respectively.+ This allows for the .NET regular expression engine to recognize a+ subset of the context-free languages, in particular the ones that only+ require a simple counter. This in turn allows for the non-traditional+ .NET regular expressions to recognize individual properly balanced+ constructs.</p>+</blockquote>++<p>Consider the following regular expression:</p>++<pre class="lang-none prettyprint-override"><code>(?=<ul\s+id="matchMe"\s+type="square"\s*>)+(?>+ <!-- .*? --> |+ <[^>]*/> |+ (?<opentag><(?!/)[^>]*[^/]>) |+ (?<-opentag></[^>]*[^/]>) |+ [^<>]*+)*+(?(opentag)(?!))+</code></pre>++<p>Use the flags:</p>++<ul>+<li>Singleline</li>+<li>IgnorePatternWhitespace (not necessary if you collapse regex and remove all whitespace)</li>+<li>IgnoreCase (not necessary)</li>+</ul>++<h2>Regular Expression Explained (inline)</h2>++<pre class="lang-none prettyprint-override"><code>(?=<ul\s+id="matchMe"\s+type="square"\s*>) # match start with <ul id="matchMe"...+(?> # atomic group / don't backtrack (faster)+ <!-- .*? --> | # match xml / html comment+ <[^>]*/> | # self closing tag+ (?<opentag><(?!/)[^>]*[^/]>) | # push opening xml tag+ (?<-opentag></[^>]*[^/]>) | # pop closing xml tag+ [^<>]* # something between tags+)* # match as many xml tags as possible+(?(opentag)(?!)) # ensure no 'opentag' groups are on stack+</code></pre>++<p>You can try this at <a href="http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx" rel="noreferrer">A Better .NET Regular Expression Tester</a>.</p>++<p>I used the sample source of:</p>++<pre><code><html>+<body>+<div>+ <br />+ <ul id="matchMe" type="square">+ <li>stuff...</li>+ <li>more stuff</li>+ <li>+ <div>+ <span>still more</span>+ <ul>+ <li>Another &gt;ul&lt;, oh my!</li>+ <li>...</li>+ </ul>+ </div>+ </li>+ </ul>+</div>+</body>+</html>+</code></pre>++<p>This found the match:</p>++<pre><code> <ul id="matchMe" type="square">+ <li>stuff...</li>+ <li>more stuff</li>+ <li>+ <div>+ <span>still more</span>+ <ul>+ <li>Another &gt;ul&lt;, oh my!</li>+ <li>...</li>+ </ul>+ </div>+ </li>+ </ul>+</code></pre>++<p>although it actually came out like this:</p>++<pre><code><ul id="matchMe" type="square"> <li>stuff...</li> <li>more stuff</li> <li> <div> <span>still more</span> <ul> <li>Another &gt;ul&lt;, oh my!</li> <li>...</li> </ul> </div> </li> </ul>+</code></pre>++<p>Lastly, I really enjoyed Jeff Atwood's article: <a href="https://blog.codinghorror.com/parsing-html-the-cthulhu-way/" rel="noreferrer">Parsing Html The Cthulhu Way</a>. Funny enough, it cites the answer to this question that currently has over 4k votes.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-09-27T04:01:04"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="7564061">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/7564061"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-7564061" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info user-hover">+ <div class="user-action-time">+ <a href="/posts/7564061/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-02-23 04:43:47Z' class='relativetime'>Feb 23, 2020 at 4:43</span></a>+ </div>+ <div class="user-gravatar32">+ <a href="/users/4415734/callum-watkins"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/x6QKy.png?s=64&g=1" alt="Callum Watkins's user avatar" width="32" height="32" class="bar-sm"></div></a>+ </div>+ <div class="user-details">+ <a href="/users/4415734/callum-watkins">Callum Watkins</a>+ <div class="-flair">+ <span class="reputation-score" title="reputation score " dir="ltr">2,704</span><span title="4 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 gold badges</span><span title="31 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">31</span></span><span class="v-visible-sr">31 silver badges</span><span title="48 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">48</span></span><span class="v-visible-sr">48 bronze badges</span>+ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info ">+ <div class="user-action-time">+ answered <span title='2011-09-27 04:01:04Z' class='relativetime'>Sep 27, 2011 at 4:01</span>+ </div>+ <div class="user-gravatar32">+ <a href="/users/590956/sam"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/y06xx.jpg?s=64&g=1" alt="Sam's user avatar" width="32" height="32" class="bar-sm"></div></a>+ </div>+ <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">+ <a href="/users/590956/sam">Sam</a><span class="d-none" itemprop="name">Sam</span>+ <div class="-flair">+ <span class="reputation-score" title="reputation score 26,579" dir="ltr">26.6k</span><span title="12 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">12</span></span><span class="v-visible-sr">12 gold badges</span><span title="72 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">72</span></span><span class="v-visible-sr">72 silver badges</span><span title="100 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">100</span></span><span class="v-visible-sr">100 bronze badges</span>+ </div>+ </div>+</div>+++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">5</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-7564061" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="7564061" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-11457016" class="comment js-comment " data-comment-id="11457016" data-comment-owner-id="76337" data-comment-score="19">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">19</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy"><code>System.Text</code> is not part of C#. It's part of .NET.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/76337/john-saunders"+ title="159,726 reputation"+ class="comment-user">John Saunders</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-02-02 19:07:53Z, License: CC BY-SA 3.0' class='relativetime-clean'>Feb 2, 2012 at 19:07</span></span>+ </div>+ </div>+ </li>+ <li id="comment-14956273" class="comment js-comment " data-comment-id="14956273" data-comment-owner-id="1344461" data-comment-score="8">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">8</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">In the first line of your regex (<code>(?=<ul\s*id="matchMe"\s*type="square"\s*>) # match start with <ul id="matchMe"...</code>), in between "<ul" and "id" should be <code>\s+</code>, not <code>\s*</code>, unless you want it to match <ulid=... ;)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/1344461/c0deh4cker"+ title="3,927 reputation"+ class="comment-user">C0deH4cker</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-07-06 02:49:08Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 6, 2012 at 2:49</span></span>+ </div>+ </div>+ </li>+ <li id="comment-14982109" class="comment js-comment " data-comment-id="14982109" data-comment-owner-id="590956" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@C0deH4cker You are correct, the expression should have <code>\s+</code> instead of <code>\s*</code>.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/590956/sam"+ title="26,579 reputation"+ class="comment-user">Sam</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-07-06 22:33:05Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 6, 2012 at 22:33</span></span>+ </div>+ </div>+ </li>+ <li id="comment-28164133" class="comment js-comment " data-comment-id="28164133" data-comment-owner-id="1455622" data-comment-score="4">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">4</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Not that I really understand it, but I think your regex fails on <code><img src="images/pic.jpg" /></code></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/1455622/scheintod"+ title="7,785 reputation"+ class="comment-user">Scheintod</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-09-27 17:05:13Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 27, 2013 at 17:05</span></span>+ </div>+ </div>+ </li>+ <li id="comment-28167413" class="comment js-comment " data-comment-id="28167413" data-comment-owner-id="590956" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Scheintod Thank you for the comment. I updated the code. The previous expression failed for self closing tags that had a <code>/</code> somewhere inside which failed for your <code><img src="images/pic.jpg" /></code> html.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/590956/sam"+ title="26,579 reputation"+ class="comment-user">Sam</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-09-27 19:00:25Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 27, 2013 at 19:00</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-7564061" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1732595"></a>+<div id="answer-1732595" class="answer js-answer" data-answerid="1732595" data-parentid="1732348" data-score="265" data-position-on-page="9" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1732595">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="265">+ 265+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1732595"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1732595"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1732595/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I suggest using <a href="http://querypath.org/" rel="noreferrer">QueryPath</a> for parsing XML and HTML in PHP. It's basically much the same syntax as jQuery, only it's on the server side.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-13T23:44:50"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1732595">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1732595"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1732595" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1732595/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2015-05-12 18:54:20Z' class='relativetime'>May 12, 2015 at 18:54</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1732595" href="/posts/1732595/revisions" title="show revision history for this post">+ 4 revs, 4 users 57%<br><a href="/users/9143">John Fiala</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">4</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1732595" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1732595" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-29262125" class="comment js-comment " data-comment-id="29262125" data-comment-owner-id="257182" data-comment-score="9">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">9</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Kyle—jQuery does not parse XML, it uses the client's built–in parser (if there is one). Therefore you do not need jQuery to do it, but as little as two lines of <a href="https://developer.mozilla.org/en-US/docs/Parsing_and_serializing_XML" rel="nofollow noreferrer">plain old JavaScript</a>. If there is no built–in parser, jQuery will not help.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/257182/robg"+ title="138,016 reputation"+ class="comment-user">RobG</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-10-31 06:25:27Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 31, 2013 at 6:25</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-40656661" class="comment js-comment " data-comment-id="40656661" data-comment-owner-id="510036" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@RobG Actually jQuery uses the DOM, not the built-in parser.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/510036/qix-monica-was-mistreated"+ title="13,730 reputation"+ class="comment-user">Qix - MONICA WAS MISTREATED</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2014-09-22 03:49:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 22, 2014 at 3:49</span></span>+ </div>+ </div>+ </li>+ <li id="comment-40657671" class="comment js-comment " data-comment-id="40657671" data-comment-owner-id="257182" data-comment-score="12">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">12</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Qix—you'd better tell the authors of the documentation then: "<i>jQuery.parseXML uses the native parsing function of the browser…</i>". Source: <a href="http://api.jquery.com/jQuery.parseXML/" rel="nofollow noreferrer"><i>jQuery.parseXML()</i></a></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/257182/robg"+ title="138,016 reputation"+ class="comment-user">RobG</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2014-09-22 05:01:30Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 22, 2014 at 5:01</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-60351141" class="comment js-comment " data-comment-id="60351141" data-comment-owner-id="8681" data-comment-score="6">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">6</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Having come here from the meme question (<a href="http://meta.stackexchange.com/questions/19478/the-many-memes-of-meta/19479#19479" title="the many memes of meta">meta.stackexchange.com/questions/19478/the-many-memes-of-meta/…</a>), I love that one of the answers is 'Use jQuery'</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/8681/jorn"+ title="17,801 reputation"+ class="comment-user">Jorn</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-04-01 21:09:45Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 1, 2016 at 21:09</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1732595" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="2146912"></a>+<div id="answer-2146912" class="answer js-answer" data-answerid="2146912" data-parentid="1732348" data-score="233" data-position-on-page="10" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="2146912">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="233">+ 233+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-2146912"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="2146912"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/2146912/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>While the answers that you can't parse HTML with regexes are correct, they don't apply here. The OP just wants to parse one HTML tag with regexes, and that is something that can be done with a regular expression.</p>++<p>The suggested regex is wrong, though:</p>++<pre><code><([a-z]+) *[^/]*?>+</code></pre>++<p>If you add something to the regex, by backtracking it can be forced to match silly things like <code><a >></code>, <code>[^/]</code> is too permissive. Also note that <code><space>*[^/]*</code> is redundant, because the <code>[^/]*</code> can also match spaces.</p>++<p>My suggestion would be</p>++<pre><code><([a-z]+)[^>]*(?<!/)>+</code></pre>++<p>Where <code>(?<! ... )</code> is (in Perl regexes) the negative look-behind. It reads "a <, then a word, then anything that's not a >, the last of which may not be a /, followed by >".</p>++<p>Note that this allows things like <code><a/ ></code> (just like the original regex), so if you want something more restrictive, you need to build a regex to match attribute pairs separated by spaces.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-01-27T12:54:35"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="2146912">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/2146912"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-2146912" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/2146912/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2010-01-27 12:54:35Z' class='relativetime'>Jan 27, 2010 at 12:54</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Jan 27, 2010 at 12:54. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-2146912" href="/posts/2146912/revisions" title="show revision history for this post">+ moritz+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">6</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-2146912" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="2146912" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="1"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-16545748" class="comment js-comment " data-comment-id="16545748" data-comment-owner-id="423105" data-comment-score="31">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">31</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">+1 for noting that the question is not about parsing full (X)HTML, it's about matching (X)HTML open tags.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/423105/larsh"+ title="26,946 reputation"+ class="comment-user">LarsH</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2012-09-08 02:26:22Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 8, 2012 at 2:26</span></span>+ </div>+ </div>+ </li>+ <li id="comment-46771251" class="comment js-comment " data-comment-id="46771251" data-comment-owner-id="2543666" data-comment-score="11">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">11</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Something else most of the answers seem to ignore, is that an HTML parser can very well use regular expressions in its implementation for parts of HTML, and I would be surprised if most parsers didn't do this.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/2543666/thayne"+ title="6,421 reputation"+ class="comment-user">Thayne</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-03-26 19:15:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>Mar 26, 2015 at 19:15</span></span>+ </div>+ </div>+ </li>+ <li id="comment-55471750" class="comment js-comment " data-comment-id="55471750" data-comment-owner-id="3476849" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Thayne Exactly. When parsing individual tags, a regular expression is the right tool for the job. It is quite ridiculous that one has to scroll halfway down the page to find a reasonable answer. The accepted answer is incorrect because it mixes up lexing and parsing.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/3476849/kasperd"+ title="1,922 reputation"+ class="comment-user">kasperd</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-11-22 10:26:25Z, License: CC BY-SA 3.0' class='relativetime-clean'>Nov 22, 2015 at 10:26</span></span>+ </div>+ </div>+ </li>+ <li id="comment-61105461" class="comment js-comment " data-comment-id="61105461" data-comment-owner-id="3829420" data-comment-score="4">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">4</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">The answer given here will fail when an attribute value contains a '>' or '/' character.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/3829420/martin-l"+ title="986 reputation"+ class="comment-user">Martin L</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-04-21 08:14:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 21, 2016 at 8:14</span></span>+ </div>+ </div>+ </li>+ <li id="comment-77757983" class="comment js-comment " data-comment-id="77757983" data-comment-owner-id="7488" data-comment-score="1">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">1</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">This will work incorrectly on HTML containing comments or CData sections. It will also not work correctly if a quoted attribute contains a <code>></code> character. I agree what OP suggest <i>can</i> be done with a regex, but the one presented here is far to simplistic.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/7488/jacquesb"+ title="41,058 reputation"+ class="comment-user">JacquesB</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2017-07-30 10:14:41Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 30, 2017 at 10:14</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-2146912" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>1</b> more comment</a>+ </div>+ </div>+ </div>+</div>+++<a name="1732395"></a>+<div id="answer-1732395" class="answer js-answer" data-answerid="1732395" data-parentid="1732348" data-score="191" data-position-on-page="11" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1732395">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="191">+ 191+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1732395"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1732395"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1732395/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Try:</p>++<pre><code><([^\s]+)(\s[^>]*?)?(?<!/)>+</code></pre>++<p>It is similar to yours, but the last <code>></code> must not be after a slash, and also accepts <code>h1</code>.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-13T22:50:48"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1732395">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1732395"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1732395" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1732395/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2009-11-25 21:12:04Z' class='relativetime'>Nov 25, 2009 at 21:12</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1732395" href="/posts/1732395/revisions" title="show revision history for this post">+ 3 revs, 2 users 77%<br><a href="/users/7586">Kobi</a>++ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">6</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1732395" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1732395" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="1"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-1612303" class="comment js-comment " data-comment-id="1612303" data-comment-owner-id="31582" data-comment-score="114">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">114</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy"><a href="foo" title="5>3"> Oops </a></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/31582/gareth"+ title="127,913 reputation"+ class="comment-user">Gareth</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2009-11-13 23:11:39Z, License: CC BY-SA 2.5' class='relativetime-clean'>Nov 13, 2009 at 23:11</span></span>+ </div>+ </div>+ </li>+ <li id="comment-1612577" class="comment js-comment " data-comment-id="1612577" data-comment-owner-id="18936" data-comment-score="67">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">67</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy"><code>></code> is valid in an attribute value. Indeed, in the ‘canonical XML’ serialisation you must not use <code>&gt;</code>. (Which isn't entirely relevant, except to emphasise that <code>></code> in an attribute value is not at all an unusual thing.)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/18936/bobince"+ title="520,261 reputation"+ class="comment-user">bobince</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2009-11-14 00:15:33Z, License: CC BY-SA 2.5' class='relativetime-clean'>Nov 14, 2009 at 0:15</span></span>+ </div>+ </div>+ </li>+ <li id="comment-6710778" class="comment js-comment " data-comment-id="6710778" data-comment-owner-id="260080" data-comment-score="5">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">5</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@Kobi: what does the exlamation mark (the one you placed tpward the end) mean in a regexp?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/260080/marco-demaio"+ title="32,860 reputation"+ class="comment-user">Marco Demaio</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-04-30 17:16:11Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 30, 2011 at 17:16</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-6710897" class="comment js-comment " data-comment-id="6710897" data-comment-owner-id="260080" data-comment-score="6">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">6</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@bobince: are u sure? I don't understand anymore, so is this valid HTML too: <code><div title="this tag is a <div></div>">hello</div></code></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/260080/marco-demaio"+ title="32,860 reputation"+ class="comment-user">Marco Demaio</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-04-30 17:31:15Z, License: CC BY-SA 3.0' class='relativetime-clean'>Apr 30, 2011 at 17:31</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-67296534" class="comment js-comment " data-comment-id="67296534" data-comment-owner-id="317052" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@MarcoDemaio - <code>></code> does not have to be escaped in an attribute value, but <code><</code> does. So this is would be valid HTML: <code><div title="this tag is a &lt;div>&lt;/div>">hello</div></code></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/317052/daniel-haley"+ title="49,857 reputation"+ class="comment-user">Daniel Haley</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-10-12 22:11:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 12, 2016 at 22:11</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1732395" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>1</b> more comment</a>+ </div>+ </div>+ </div>+</div>+++<a name="10633717"></a>+<div id="answer-10633717" class="answer js-answer" data-answerid="10633717" data-parentid="1732348" data-score="191" data-position-on-page="12" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="10633717">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="191">+ 191+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-10633717"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="10633717"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/10633717/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Sun Tzu, an ancient Chinese strategist, general, and philosopher, said:</p>++<blockquote>+ <p>It is said that if you know your enemies and know yourself, you can win a hundred battles without a single loss.+ If you only know yourself, but not your opponent, you may win or may lose.+ If you know neither yourself nor your enemy, you will always endanger yourself.</p>+</blockquote>++<p>In this case your enemy is HTML and you are either yourself or regex. You might even be Perl with irregular regex. Know HTML. Know yourself.</p>++<p>I have composed a haiku describing the nature of HTML.</p>++<pre><code>HTML has+complexity exceeding+regular language.+</code></pre>++<p>I have also composed a haiku describing the nature of regex in Perl.</p>++<pre><code>The regex you seek+is defined within the phrase+<([a-zA-Z]+)(?:[^>]*[^/]*)?>+</code></pre>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2012-05-17T10:13:03"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="10633717">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/10633717"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-10633717" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/10633717/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2013-10-05 04:52:53Z' class='relativetime'>Oct 5, 2013 at 4:52</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of May 17, 2012 at 10:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-10633717" href="/posts/10633717/revisions" title="show revision history for this post">+ 2 revs, 2 users 98%<br><a href="/users/863553">cytinus</a>++ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-10633717" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="10633717" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-10633717" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1737662"></a>+<div id="answer-1737662" class="answer js-answer" data-answerid="1737662" data-parentid="1732348" data-score="160" data-position-on-page="13" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1737662">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="160">+ 160+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1737662"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1737662"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1737662/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<pre><code><?php+$selfClosing = explode(',', 'area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed');++$html = '+<p><a href="#">foo</a></p>+<hr/>+<br/>+<div>name</div>';++$dom = new DOMDocument();+$dom->loadHTML($html);+$els = $dom->getElementsByTagName('*');+foreach ( $els as $el ) {+ $nodeName = strtolower($el->nodeName);+ if ( !in_array( $nodeName, $selfClosing ) ) {+ var_dump( $nodeName );+ }+}+</code></pre>++<p>Output:</p>++<pre><code>string(4) "html"+string(4) "body"+string(1) "p"+string(1) "a"+string(3) "div"+</code></pre>++<p>Basically just define the element node names that are self closing, load the whole html string into a DOM library, grab all elements, loop through and filter out ones which aren't self closing and operate on them.</p>++<p>I'm sure you already know by now that you shouldn't use regex for this purpose.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-15T14:37:06"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1737662">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1737662"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1737662" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1737662/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2009-11-15 14:44:04Z' class='relativetime'>Nov 15, 2009 at 14:44</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1737662" href="/posts/1737662/revisions" title="show revision history for this post">+ 2 revs<br><a href="/users/145190">meder</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">1</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1737662" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1737662" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-1618096" class="comment js-comment " data-comment-id="1618096" data-comment-owner-id="145190" data-comment-score="1">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">1</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">If you're dealing with real XHTML then append getElementsByTagName with <code>NS</code> and specify the namespace.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/145190/meder-omuraliev"+ title="180,288 reputation"+ class="comment-user">meder omuraliev</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2009-11-15 14:39:44Z, License: CC BY-SA 2.5' class='relativetime-clean'>Nov 15, 2009 at 14:39</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1737662" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1745488"></a>+<div id="answer-1745488" class="answer js-answer" data-answerid="1745488" data-parentid="1732348" data-score="151" data-position-on-page="14" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1745488">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="151">+ 151+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1745488"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1745488"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1745488/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I don't know your exact need for this, but if you are also using .NET, couldn't you use <a href="http://www.codeplex.com/htmlagilitypack" rel="noreferrer">Html Agility Pack</a>?</p>++<p>Excerpt:</p>++<blockquote>+ <p><em>It is a .NET code library that allows+ you to parse "out of the web" HTML+ files. The parser is very tolerant+ with "real world" malformed HTML.</em></p>+</blockquote>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-16T23:15:03"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1745488">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1745488"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1745488" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/1745488/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2009-11-16 23:15:03Z' class='relativetime'>Nov 16, 2009 at 23:15</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1745488" href="/posts/1745488/revisions" title="show revision history for this post">+ GONeale+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">1</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1745488" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1745488" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-112135990" class="comment js-comment " data-comment-id="112135990" data-comment-owner-id="63550" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">CodePlex closed down (but this one is in the CodePlex archive). Perhaps update?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/63550/peter-mortensen"+ title="30,620 reputation"+ class="comment-user">Peter Mortensen</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2020-08-14 15:47:34Z, License: CC BY-SA 4.0' class='relativetime-clean'>Aug 14, 2020 at 15:47</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1745488" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1732382"></a>+<div id="answer-1732382" class="answer js-answer" data-answerid="1732382" data-parentid="1732348" data-score="141" data-position-on-page="15" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1732382">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="141">+ 141+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1732382"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1732382"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1732382/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>You want the first <code>></code> not preceded by a <code>/</code>. Look <a href="http://www.regular-expressions.info/lookaround.html" rel="noreferrer">here</a> for details on how to do that. It's referred to as negative lookbehind.</p>++<p>However, a naïve implementation of that will end up matching <code><bar/></foo></code> in this example document</p>++<pre><code><foo><bar/></foo>+</code></pre>++<p>Can you provide a little more information on the problem you're trying to solve? Are you iterating through tags programatically?</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-13T22:47:17"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1732382">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1732382"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1732382" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1732382/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2012-03-19 15:04:25Z' class='relativetime'>Mar 19, 2012 at 15:04</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1732382" href="/posts/1732382/revisions" title="show revision history for this post">+ 2 revs, 2 users 89%<br><a href="/users/85306">Jherico</a>++ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1732382" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="1732382" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-1732382" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1744154"></a>+<div id="answer-1744154" class="answer js-answer" data-answerid="1744154" data-parentid="1732348" data-score="109" data-position-on-page="16" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1744154">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="109">+ 109+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1744154"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1744154"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1744154/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>If you need this for PHP:</p>++<p>The <a href="http://www.php.net/manual/en/function.dom-import-simplexml.php" rel="noreferrer">PHP DOM</a> <a href="http://php.net/manual/en/class.domdocument.php" rel="noreferrer">functions</a> won't work properly unless it is properly formatted XML. No matter how much better their use is for the rest of mankind.</p>++<p><a href="http://simplehtmldom.sourceforge.net/" rel="noreferrer">simplehtmldom</a> is good, but I found it a bit buggy, and it is is quite memory heavy [Will crash on large pages.]</p>++<p>I have never used <a href="http://querypath.org/" rel="noreferrer">querypath</a>, so can't comment on its usefulness. </p>++<p>Another one to try is my <a href="http://github.com/siteroller/domparser" rel="noreferrer">DOMParser</a> which is very light on resources and I've been using happily for a while. Simple to learn & powerful.</p>++<p>For Python and Java, similar links were posted.</p>++<p>For the downvoters - I only wrote my class when the XML parsers proved unable to withstand real use. Religious downvoting just prevents useful answers from being posted - keep things within perspective of the question, please.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-16T19:02:48"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1744154">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1744154"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1744154" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1744154/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2012-03-19 15:02:18Z' class='relativetime'>Mar 19, 2012 at 15:02</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1744154" href="/posts/1744154/revisions" title="show revision history for this post">+ 4 revs, 2 users 98%<br><a href="/users/87520">SamGoody</a>++ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1744154" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="1744154" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-1744154" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="6817767"></a>+<div id="answer-6817767" class="answer js-answer" data-answerid="6817767" data-parentid="1732348" data-score="99" data-position-on-page="17" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="6817767">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="99">+ 99+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-6817767"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="6817767"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/6817767/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Here's the solution:</p>++<pre><code><?php+// here's the pattern:+$pattern = '/<(\w+)(\s+(\w+)\s*\=\s*(\'|")(.*?)\\4\s*)*\s*(\/>|>)/';++// a string to parse:+$string = 'Hello, try clicking <a href="#paragraph">here</a>+ <br/>and check out.<hr />+ <h2>title</h2>+ <a name ="paragraph" rel= "I\'m an anchor"></a>+ Fine, <span title=\'highlight the "punch"\'>thanks<span>.+ <div class = "clear"></div>+ <br>';++// let's get the occurrences:+preg_match_all($pattern, $string, $matches, PREG_PATTERN_ORDER);++// print the result:+print_r($matches[0]);+?>+</code></pre>++<p>To test it deeply, I entered in the string auto-closing tags like:</p>++<ol>+<li><hr /></li>+<li><br/></li>+<li><br></li>+</ol>++<p>I also entered tags with:</p>++<ol>+<li>one attribute</li>+<li>more than one attribute</li>+<li>attributes which value is bound either into <strong>single quotes</strong> or into <strong>double quotes</strong></li>+<li>attributes containing single quotes when the delimiter is a double quote and vice versa</li>+<li>"unpretty" attributes with a space before the "=" symbol, after it and both before and after it.</li>+</ol>++<p>Should you find something which does not work in the proof of concept above, I am available in analyzing the code to improve my skills.</p>++<p><strong><EDIT></strong>+I forgot that the question from the user was to avoid the parsing of self-closing tags.+In this case the pattern is simpler, turning into this:</p>++<pre><code>$pattern = '/<(\w+)(\s+(\w+)\s*\=\s*(\'|")(.*?)\\4\s*)*\s*>/';+</code></pre>++<p>The user @ridgerunner noticed that the pattern does not allow <strong>unquoted attributes</strong> or <strong>attributes with no value</strong>. In this case a fine tuning brings us the following pattern:</p>++<pre><code>$pattern = '/<(\w+)(\s+(\w+)(\s*\=\s*(\'|"|)(.*?)\\5\s*)?)*\s*>/';+</code></pre>++<p><strong></EDIT></strong></p>++<h1>Understanding the pattern</h1>++<p>If someone is interested in learning more about the pattern, I provide some line:</p>++<ol>+<li>the first sub-expression (\w+) matches the tag name</li>+<li>the second sub-expression contains the pattern of an attribute. It is composed by:++<ol>+<li>one or more whitespaces \s+</li>+<li>the name of the attribute (\w+)</li>+<li>zero or more whitespaces \s* (it is possible or not, leaving blanks here)</li>+<li>the "=" symbol</li>+<li>again, zero or more whitespaces</li>+<li>the delimiter of the attribute value, a single or double quote ('|"). In the pattern, the single quote is escaped because it coincides with the PHP string delimiter. This sub-expression is captured with the parentheses so it can be referenced again to parse the closure of the attribute, that's why it is very important.</li>+<li>the value of the attribute, matched by <em>almost</em> anything: (.*?); in this specific syntax, using the <strong>greedy match</strong> (the question mark after the asterisk) the RegExp engine enables a "look-ahead"-like operator, which matches anything but what follows this sub-expression</li>+<li>here comes the fun: the \4 part is a <strong>backreference operator</strong>, which refers to a sub-expression defined before in the pattern, in this case, I am referring to the fourth sub-expression, which is the first attribute delimiter found</li>+<li>zero or more whitespaces \s*</li>+<li>the attribute sub-expression ends here, with the specification of zero or more possible occurrences, given by the asterisk.</li>+</ol></li>+<li>Then, since a tag may end with a whitespace before the ">" symbol, zero or more whitespaces are matched with the \s* subpattern.</li>+<li>The tag to match may end with a simple ">" symbol, or a possible XHTML closure, which makes use of the slash before it: (/>|>). The slash is, of course, escaped since it coincides with the regular expression delimiter.</li>+</ol>++<p>Small tip: to better analyze this code it is necessary looking at the source code generated since I did not provide any HTML special characters escaping.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-07-25T14:35:59"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="6817767">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/6817767"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-6817767" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/6817767/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2017-10-18 07:33:46Z' class='relativetime'>Oct 18, 2017 at 7:33</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Jul 25, 2011 at 14:35. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-6817767" href="/posts/6817767/revisions" title="show revision history for this post">+ 6 revs, 2 users 96%<br><a href="/users/383764">Emanuele Del Grande</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">5</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-6817767" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="6817767" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-8098950" class="comment js-comment " data-comment-id="8098950" data-comment-owner-id="433790" data-comment-score="12">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">12</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Does not match valid tags having attributes with no value, i.e. <code><option selected></code>. Also does not match valid tags with unquoted attribute values, i.e. <code><p id=10></code>.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/433790/ridgerunner"+ title="32,991 reputation"+ class="comment-user">ridgerunner</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-07-25 15:01:59Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 25, 2011 at 15:01</span></span>+ <span title="this comment was edited 1 time">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-8100663" class="comment js-comment " data-comment-id="8100663" data-comment-owner-id="383764" data-comment-score="1">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">1</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@ridgerunner: Thanks very much for your comment. In that case the pattern must change a bit: $pattern = '/<(\w+)(\s+(\w+)(\s*\=\s*(\'|"|)(.*?)\\5\s*)?)*\s*>/'; I tested it and works in case of non-quoted attributes or attributes with no value.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/383764/yodabar"+ title="4,561 reputation"+ class="comment-user">yodabar</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-07-25 16:41:46Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 25, 2011 at 16:41</span></span>+ <span title="this comment was edited 3 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-28400943" class="comment js-comment " data-comment-id="28400943" data-comment-owner-id="1967396" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">How about a space before the tag name: <code>< a href="http://wtf.org" ></code> I'm pretty sure it is legal, but you don't match it.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/1967396/floris"+ title="45,381 reputation"+ class="comment-user">Floris</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-10-05 04:58:49Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 5, 2013 at 4:58</span></span>+ </div>+ </div>+ </li>+ <li id="comment-28430952" class="comment js-comment " data-comment-id="28430952" data-comment-owner-id="383764" data-comment-score="7">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">7</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">NO sorry, whitespaces before a tagname are illegal. Beyond being "pretty sure" why don't you provide some evidences of your objection? Here are mine, <a href="http://www.w3.org/TR/xml11/#sec-starttags" rel="nofollow noreferrer">w3.org/TR/xml11/#sec-starttags</a> referred to XML 1.1, and you can find the same for HTML 4, 5 and XHTML, as a W3C validation would also warn if you make a test. As a lot of other blah-blah-poets around here, I did not still receive any intelligent argumentation, apart some hundred of minus to my answers, to demonstrate where my code fails according to the <i>rules of contract</i> specified in the question. I would only welcome them.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/383764/yodabar"+ title="4,561 reputation"+ class="comment-user">yodabar</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-10-06 18:03:45Z, License: CC BY-SA 3.0' class='relativetime-clean'>Oct 6, 2013 at 18:03</span></span>+ </div>+ </div>+ </li>+ <li id="comment-111341890" class="comment js-comment " data-comment-id="111341890" data-comment-owner-id="22820" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">XML tags can contain colons, e.g. <code><namespace:name></code>, is that not so in HTML?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/22820/qwertie"+ title="15,526 reputation"+ class="comment-user">Qwertie</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2020-07-17 21:54:59Z, License: CC BY-SA 4.0' class='relativetime-clean'>Jul 17, 2020 at 21:54</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-6817767" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1756533"></a>+<div id="answer-1756533" class="answer js-answer" data-answerid="1756533" data-parentid="1732348" data-score="93" data-position-on-page="18" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1756533">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="93">+ 93+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1756533"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1756533"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1756533/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Whenever I need to quickly extract something from an HTML document, I use Tidy to convert it to XML and then use XPath or XSLT to get what I need.+In your case, something like this: </p>++<pre><code>//p/a[@href='foo']+</code></pre>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-18T14:50:26"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1756533">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1756533"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1756533" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/1756533/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2014-04-04 08:11:06Z' class='relativetime'>Apr 4, 2014 at 8:11</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1756533" href="/posts/1756533/revisions" title="show revision history for this post">+ 2 revs, 2 users 67%<br><a href="/users/1438393">Amal Murali</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1756533" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="1756533" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-1756533" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1744002"></a>+<div id="answer-1744002" class="answer js-answer" data-answerid="1744002" data-parentid="1732348" data-score="91" data-position-on-page="19" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1744002">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="91">+ 91+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1744002"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1744002"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1744002/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I used a open source tool called <a href="http://htmlparser.sourceforge.net/">HTMLParser</a> before. It's designed to parse HTML in various ways and serves the purpose quite well. It can parse HTML as different treenode and you can easily use its API to get attributes out of the node. Check it out and see if this can help you.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-16T18:34:50"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1744002">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1744002"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1744002" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/1744002/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2009-11-16 18:34:50Z' class='relativetime'>Nov 16, 2009 at 18:34</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1744002" href="/posts/1744002/revisions" title="show revision history for this post">+ wen+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount"></span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1744002" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="1744002" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-1744002" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="6653839"></a>+<div id="answer-6653839" class="answer js-answer" data-answerid="6653839" data-parentid="1732348" data-score="87" data-position-on-page="20" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="6653839">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="87">+ 87+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-6653839"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="6653839"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/6653839/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>I like to parse HTML with regular expressions. I don't attempt to parse idiot HTML that is deliberately broken. This code is my main parser (Perl edition):</p>+<pre><code>$_ = join "",<STDIN>; tr/\n\r \t/ /s; s/</\n</g; s/>/>\n/g; s/\n ?\n/\n/g;+s/^ ?\n//s; s/ $//s; print+</code></pre>+<p>It's called <em>htmlsplit</em>, splits the HTML into lines, with one tag or chunk of text on each line. The lines can then be processed further with other text tools and scripts, such as <a href="http://en.wikipedia.org/wiki/Grep" rel="nofollow noreferrer">grep</a>, <a href="http://en.wikipedia.org/wiki/Sed" rel="nofollow noreferrer">sed</a>, Perl, etc. I'm not even joking :) Enjoy.</p>+<p>It is simple enough to rejig my slurp-everything-first Perl script into a nice streaming thing, if you wish to process enormous web pages. But it's not really necessary.</p>+<p><a href="http://sam.nipl.net/code/nipl-tools/bin/htmlsplit" rel="nofollow noreferrer">HTML Split</a></p>+<hr/>+<p>Some better regular expressions:</p>+<pre><code>/(<.*?>|[^<]+)\s*/g # Get tags and text+/(\w+)="(.*?)"/g # Get attibutes+</code></pre>+<p>They are good for XML / XHTML.</p>+<p>With minor variations, it can cope with messy HTML... or convert the HTML -> XHTML first.</p>+<hr/>+<p>The best way to write regular expressions is in the <a href="http://en.wikipedia.org/wiki/Lex_%28software%29" rel="nofollow noreferrer">Lex</a> / <a href="http://en.wikipedia.org/wiki/Yacc" rel="nofollow noreferrer">Yacc</a> style, not as opaque one-liners or commented multi-line monstrosities. I didn't do that here, yet; these ones barely need it.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-07-11T17:13:17"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="6653839">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/6653839"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-6653839" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/6653839/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-10-28 23:11:43Z' class='relativetime'>Oct 28, 2020 at 23:11</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Jul 11, 2011 at 17:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-6653839" href="/posts/6653839/revisions" title="show revision history for this post">+ 6 revs, 3 users 57%<br><a href="/users/218294">Sam Watkins</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">9</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-6653839" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="6653839" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="4"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-8124904" class="comment js-comment " data-comment-id="8124904" data-comment-owner-id="125389" data-comment-score="54">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">54</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">"I don't attempt to parse idiot HTML that is deliberately broken." How does your code know the difference?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/125389/kevin-panko"+ title="8,179 reputation"+ class="comment-user">Kevin Panko</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-07-26 20:38:07Z, License: CC BY-SA 3.0' class='relativetime-clean'>Jul 26, 2011 at 20:38</span></span>+ </div>+ </div>+ </li>+ <li id="comment-66191097" class="comment js-comment " data-comment-id="66191097" data-comment-owner-id="904933" data-comment-score="5">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">5</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">(get attributes bug 1) <code>/(\w+)="(.*?)"/</code> assumes double quotes. It will miss values in single quotes. In html version 4 and earlier unquoted value is allowed, if it is a simple word.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/904933/david-andersson"+ title="725 reputation"+ class="comment-user">David Andersson</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-09-11 08:23:51Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 11, 2016 at 8:23</span></span>+ </div>+ </div>+ </li>+ <li id="comment-66191152" class="comment js-comment " data-comment-id="66191152" data-comment-owner-id="904933" data-comment-score="4">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">4</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">(get attributes bug 2) <code>/(\w+)="(.*?)"/</code> may falsely match text that looks like an attribute within an attribute, e.g. <code><img title="Nope down='up' for aussies" src="..." /></code>. If applied globally, it will also match such things in ordinary text or in html comments.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/904933/david-andersson"+ title="725 reputation"+ class="comment-user">David Andersson</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-09-11 08:28:54Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 11, 2016 at 8:28</span></span>+ </div>+ </div>+ </li>+ <li id="comment-66191321" class="comment js-comment " data-comment-id="66191321" data-comment-owner-id="904933" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">(get attributes bug 3) <code>/(\w+)="(.*?)"/</code> Optional whitespace should be allowed around the equal sign.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/904933/david-andersson"+ title="725 reputation"+ class="comment-user">David Andersson</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-09-11 08:42:23Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 11, 2016 at 8:42</span></span>+ </div>+ </div>+ </li>+ <li id="comment-66191692" class="comment js-comment " data-comment-id="66191692" data-comment-owner-id="904933" data-comment-score="4">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">4</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">(html split bug 1) <code>s/>/>\n/g</code> Since ">" is allowed in data, this may split text lines and confuse subsequent processing.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/904933/david-andersson"+ title="725 reputation"+ class="comment-user">David Andersson</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-09-11 09:09:52Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 11, 2016 at 9:09</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-6653839" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>4</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="2708960"></a>+<div id="answer-2708960" class="answer js-answer" data-answerid="2708960" data-parentid="1732348" data-score="71" data-position-on-page="21" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="2708960">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="71">+ 71+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-2708960"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="2708960"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/2708960/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>There are some nice regexes for replacing HTML with BBCode <a href="http://www.garyshood.com/htmltobb/source.txt" rel="noreferrer">here</a>. For all you nay-sayers, note that he's not trying to fully parse HTML, just to sanitize it. He can probably afford to kill off tags that his simple "parser" can't understand.</p>++<p>For example:</p>++<pre><code>$store =~ s/http:/http:\/\//gi;+$store =~ s/https:/https:\/\//gi;+$baseurl = $store;++if (!$query->param("ascii")) {+ $html =~ s/\s\s+/\n/gi;+ $html =~ s/<pre(.*?)>(.*?)<\/pre>/\[code]$2\[\/code]/sgmi;+}++$html =~ s/\n//gi;+$html =~ s/\r\r//gi;+$html =~ s/$baseurl//gi;+$html =~ s/<h[1-7](.*?)>(.*?)<\/h[1-7]>/\n\[b]$2\[\/b]\n/sgmi;+$html =~ s/<p>/\n\n/gi;+$html =~ s/<br(.*?)>/\n/gi;+$html =~ s/<textarea(.*?)>(.*?)<\/textarea>/\[code]$2\[\/code]/sgmi;+$html =~ s/<b>(.*?)<\/b>/\[b]$1\[\/b]/gi;+$html =~ s/<i>(.*?)<\/i>/\[i]$1\[\/i]/gi;+$html =~ s/<u>(.*?)<\/u>/\[u]$1\[\/u]/gi;+$html =~ s/<em>(.*?)<\/em>/\[i]$1\[\/i]/gi;+$html =~ s/<strong>(.*?)<\/strong>/\[b]$1\[\/b]/gi;+$html =~ s/<cite>(.*?)<\/cite>/\[i]$1\[\/i]/gi;+$html =~ s/<font color="(.*?)">(.*?)<\/font>/\[color=$1]$2\[\/color]/sgmi;+$html =~ s/<font color=(.*?)>(.*?)<\/font>/\[color=$1]$2\[\/color]/sgmi;+$html =~ s/<link(.*?)>//gi;+$html =~ s/<li(.*?)>(.*?)<\/li>/\[\*]$2/gi;+$html =~ s/<ul(.*?)>/\[list]/gi;+$html =~ s/<\/ul>/\[\/list]/gi;+$html =~ s/<div>/\n/gi;+$html =~ s/<\/div>/\n/gi;+$html =~ s/<td(.*?)>/ /gi;+$html =~ s/<tr(.*?)>/\n/gi;++$html =~ s/<img(.*?)src="(.*?)"(.*?)>/\[img]$baseurl\/$2\[\/img]/gi;+$html =~ s/<a(.*?)href="(.*?)"(.*?)>(.*?)<\/a>/\[url=$baseurl\/$2]$4\[\/url]/gi;+$html =~ s/\[url=$baseurl\/http:\/\/(.*?)](.*?)\[\/url]/\[url=http:\/\/$1]$2\[\/url]/gi;+$html =~ s/\[img]$baseurl\/http:\/\/(.*?)\[\/img]/\[img]http:\/\/$1\[\/img]/gi;++$html =~ s/<head>(.*?)<\/head>//sgmi;+$html =~ s/<object>(.*?)<\/object>//sgmi;+$html =~ s/<script(.*?)>(.*?)<\/script>//sgmi;+$html =~ s/<style(.*?)>(.*?)<\/style>//sgmi;+$html =~ s/<title>(.*?)<\/title>//sgmi;+$html =~ s/<!--(.*?)-->/\n/sgmi;++$html =~ s/\/\//\//gi;+$html =~ s/http:\//http:\/\//gi;+$html =~ s/https:\//https:\/\//gi;++$html =~ s/<(?:[^>'"]*|(['"]).*?\1)*>//gsi;+$html =~ s/\r\r//gi;+$html =~ s/\[img]\//\[img]/gi;+$html =~ s/\[url=\//\[url=/gi;+</code></pre>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-04-25T16:38:42"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="2708960">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/2708960"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-2708960" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/2708960/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2015-05-19 16:20:44Z' class='relativetime'>May 19, 2015 at 16:20</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Apr 25, 2010 at 16:38. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-2708960" href="/posts/2708960/revisions" title="show revision history for this post">+ 4 revs, 4 users 88%<br><a href="/users/55075">kenorb</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">1</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-2708960" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="2708960" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-52604067" class="comment js-comment " data-comment-id="52604067" data-comment-owner-id="381285" data-comment-score="20">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">20</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Don't do this. Please.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/381285/maletor"+ title="6,902 reputation"+ class="comment-user">maletor</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2015-09-03 02:12:42Z, License: CC BY-SA 3.0' class='relativetime-clean'>Sep 3, 2015 at 2:12</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-2708960" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="3180176"></a>+<div id="answer-3180176" class="answer js-answer" data-answerid="3180176" data-parentid="1732348" data-score="71" data-position-on-page="22" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="3180176">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="71">+ 71+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-3180176"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="3180176"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/3180176/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>About the question of the regular expression methods to parse (x)HTML, the answer to all of the ones who spoke about some limits is: you have not been trained enough to rule the force of this powerful weapon, since <strong>nobody</strong> here spoke about <strong>recursion</strong>.</p>+<p>A regular expression-agnostic colleague notified me this discussion, which is not certainly the first on the web about this old and hot topic.</p>+<p>After reading some posts, the first thing I did was looking for the "?R" string in this thread. The second was to search about "recursion".</p>+<p>No, holy cow, no match found. Since nobody mentioned the main mechanism a parser is built onto, I was soon aware that nobody got the point.</p>+<p>If an (x)HTML parser needs recursion, a regular expression parser without recursion is not enough for the purpose. It's a simple construct.</p>+<p>The <strong>black art of regular expressions is hard to master</strong>, so maybe there are further possibilities we left out while trying and testing our personal solution to capture the whole web in one hand... Well, I am sure about it :)</p>+<p>Here's the magic pattern:</p>+<pre><code>$pattern = "/<([\w]+)([^>]*?)(([\s]*\/>)|(>((([^<]*?|<\!\-\-.*?\-\->)|(?R))*)<\/\\1[\s]*>))/s";+</code></pre>+<p>Just try it. It's written as a PHP string, so the "s" modifier makes classes include newlines.</p>+<p>Here's a <strong>sample note on the PHP manual</strong> I wrote in January: <a href="http://php.net/manual/en/regexp.reference.recursive.php" rel="nofollow noreferrer">Reference</a></p>+<p>(Take care. In that note I wrongly used the "m" modifier; it should be erased, notwithstanding it is discarded by the regular expression engine, since no <code>^</code> or <code>$</code> anchoring was used).</p>+<p>Now, we could speak about the limits of this method from a more informed point of view:</p>+<ol>+<li>according to the specific implementation of the regular expression engine, recursion may have a limit in the <strong>number of nested patterns parsed</strong>, but it depends on the language used</li>+<li>although corrupted, (x)HTML does not drive into severe errors. It is not <em>sanitized</em>.</li>+</ol>+<p>Anyhow, it is only a regular expression pattern, but it discloses the possibility to develop of a lot of powerful implementations.</p>+<p>I wrote this pattern to power the <em>recursive descent parser</em> of a template engine I built in my framework, and performances are really great, both in execution times or in memory usage (nothing to do with other template engines which use the same syntax).</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-07-05T14:16:50"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="3180176">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/3180176"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-3180176" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/3180176/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-08-14 16:06:12Z' class='relativetime'>Aug 14, 2020 at 16:06</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Jul 5, 2010 at 14:16. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-3180176" href="/posts/3180176/revisions" title="show revision history for this post">+ 4 revs, 4 users 64%<br><a href="/users/383764">Emanuele Del Grande</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">11</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-3180176" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="3180176" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="6"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-3275117" class="comment js-comment " data-comment-id="3275117" data-comment-owner-id="31582" data-comment-score="40">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">40</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I'll put this in the "Regex which doesn't allow greater-than in attributes" bin. Check it against <input value="is 5 > 3?" /></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/31582/gareth"+ title="127,913 reputation"+ class="comment-user">Gareth</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2010-07-05 16:24:02Z, License: CC BY-SA 2.5' class='relativetime-clean'>Jul 5, 2010 at 16:24</span></span>+ </div>+ </div>+ </li>+ <li id="comment-3275182" class="comment js-comment " data-comment-id="3275182" data-comment-owner-id="72943" data-comment-score="74">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">74</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">If you put something like that in production code, you would likely be shot by the maintainer. A jury would never convict him.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/72943/aehiilrs"+ title="1,245 reputation"+ class="comment-user">aehiilrs</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2010-07-05 16:33:01Z, License: CC BY-SA 2.5' class='relativetime-clean'>Jul 5, 2010 at 16:33</span></span>+ </div>+ </div>+ </li>+ <li id="comment-3284978" class="comment js-comment " data-comment-id="3284978" data-comment-owner-id="52443" data-comment-score="32">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="supernova">32</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">Regular expressions can't work because by definition they are not recursive. Adding a recursive operator to regular expressions basically makes a CFG only with poorer syntax. Why not use something designed to be recursive in the first place rather than violently insert recursion into something already overflowing with extraneous functionality?</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/52443/welbog"+ title="58,405 reputation"+ class="comment-user">Welbog</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2010-07-06 18:38:34Z, License: CC BY-SA 2.5' class='relativetime-clean'>Jul 6, 2010 at 18:38</span></span>+ </div>+ </div>+ </li>+ <li id="comment-3321225" class="comment js-comment " data-comment-id="3321225" data-comment-owner-id="102270" data-comment-score="19">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">19</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">My objection isn't one of functionality it is one of time invested. The problem with RegEx is that by the time you post the cutsey little one liners it appears that you did something more efficiently ("See one line of code!"). And of course no one mentions the half hour (or 3) that they spent with their cheat-sheet and (hopefully) testing every possible permutation of input. And once you get past all that when the maintainer goes to figure out or validate the code they can't just look at it and see that it is right. The have to dissect the expression and essentially retest it all over again...</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/102270/oorang"+ title="6,550 reputation"+ class="comment-user">Oorang</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2010-07-10 15:11:09Z, License: CC BY-SA 2.5' class='relativetime-clean'>Jul 10, 2010 at 15:11</span></span>+ </div>+ </div>+ </li>+ <li id="comment-3321252" class="comment js-comment " data-comment-id="3321252" data-comment-owner-id="102270" data-comment-score="16">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="hot">16</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">... to know that it is good. And that will happen even with people who are <i>good</i> with regex. And honestly I suspect that overwhelming majority of people won't know it well. So you take one of the most notorious maintenance nightmares and combine it with recursion which is the <i>other</i> maintenance nightmare and I think to myself what I really need on my project is someone a little less clever. The goal is to write code that bad programmers can maintain without breaking the code base. I know it galls to code to the least common denominator. But hiring excellent talent is hard, and you often...</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/102270/oorang"+ title="6,550 reputation"+ class="comment-user">Oorang</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2010-07-10 15:17:22Z, License: CC BY-SA 2.5' class='relativetime-clean'>Jul 10, 2010 at 15:17</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-3180176" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button"></a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>6</b> more comments</a>+ </div>+ </div>+ </div>+</div>+++<a name="2201251"></a>+<div id="answer-2201251" class="answer js-answer" data-answerid="2201251" data-parentid="1732348" data-score="63" data-position-on-page="23" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="2201251">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="63">+ 63+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-2201251"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="2201251"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/2201251/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>As many people have already pointed out, HTML is not a regular language which can make it very difficult to parse. My solution to this is to turn it into a regular language using a tidy program and then to use an XML parser to consume the results. There are a lot of good options for this. My program is written using Java with the <a href="http://jtidy.sourceforge.net/" rel="noreferrer">jtidy</a> library to turn the HTML into XML and then Jaxen to xpath into the result.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-02-04T16:22:00"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="2201251">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/2201251"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-2201251" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/2201251/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2010-02-04 16:22:00Z' class='relativetime'>Feb 4, 2010 at 16:22</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Feb 4, 2010 at 16:22. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-2201251" href="/posts/2201251/revisions" title="show revision history for this post">+ Corey Sanders+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-2201251" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="2201251" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-2201251" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="10535487"></a>+<div id="answer-10535487" class="answer js-answer" data-answerid="10535487" data-parentid="1732348" data-score="63" data-position-on-page="24" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="10535487">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="63">+ 63+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-10535487"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="10535487"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/10535487/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<pre><code><\s*(\w+)[^/>]*>+</code></pre>+<p>The parts explained:</p>+<p><code><</code>: Starting character</p>+<p><code>\s*</code>: It may have whitespaces before the tag name (ugly, but possible).</p>+<p><code>(\w+)</code>: tags can contain letters and numbers (h1). Well, <code>\w</code> also matches '_', but it does not hurt I guess. If curious, use ([a-zA-Z0-9]+) instead.</p>+<p><code>[^/>]*</code>: Anything except <code>></code> and <code>/</code> until closing <code>></code></p>+<p><code>></code>: Closing <code>></code></p>+<h3>UNRELATED</h3>+<p>And to the fellows, who underestimate regular expressions, saying they are only as powerful as regular languages:</p>+<p>a<sup>n</sup>ba<sup>n</sup>ba<sup>n</sup> which is not regular and not even context free, can be matched with <code>^(a+)b\1b\1$</code></p>+<p>Backreferencing <a href="http://en.wiktionary.org/wiki/FTW" rel="noreferrer">FTW</a>!</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2012-05-10T13:53:54"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="10535487">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/10535487"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-10535487" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/10535487/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-10-28 23:09:21Z' class='relativetime'>Oct 28, 2020 at 23:09</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of May 10, 2012 at 13:53. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-10535487" href="/posts/10535487/revisions" title="show revision history for this post">+ 7 revs, 4 users 46%<br><a href="/users/277291">daghan</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">4</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-10535487" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="10535487" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-20494033" class="comment js-comment " data-comment-id="20494033" data-comment-owner-id="873843" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@GlitchMr, that was his point. Modern regular expressions are not technically regular, nor is there any reason for them to be.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/873843/alanaktion"+ title="1,317 reputation"+ class="comment-user">alanaktion</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-02-02 15:45:29Z, License: CC BY-SA 3.0' class='relativetime-clean'>Feb 2, 2013 at 15:45</span></span>+ </div>+ </div>+ </li>+ <li id="comment-20863430" class="comment js-comment " data-comment-id="20863430" data-comment-owner-id="736054" data-comment-score="5">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">5</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">@alanaktion: The "modern" regular expressions (read: with Perl extensions) cannot match within <code>O(MN)</code> (M being regular expression length, N being text length). Backreferences are one of causes of that. The implementation in awk doesn't have backreferences and matches everything within <code>O(MN)</code> time.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/736054/konrad-borowski"+ title="11,055 reputation"+ class="comment-user">Konrad Borowski</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2013-02-14 16:52:45Z, License: CC BY-SA 3.0' class='relativetime-clean'>Feb 14, 2013 at 16:52</span></span>+ </div>+ </div>+ </li>+ <li id="comment-111341972" class="comment js-comment " data-comment-id="111341972" data-comment-owner-id="22820" data-comment-score="3">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">3</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy"><code><a href="foo" title="5>3"> Oops </a></code> (quoting @Gareth - odd how people keep posting answers with this specific deficiency over and over. CDATA is kind of easy to overlook, but this is rather more basic)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/22820/qwertie"+ title="15,526 reputation"+ class="comment-user">Qwertie</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2020-07-17 21:59:38Z, License: CC BY-SA 4.0' class='relativetime-clean'>Jul 17, 2020 at 21:59</span></span>+ <span title="this comment was edited 2 times">+ <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg>+ </span>+ </div>+ </div>+ </li>+ <li id="comment-130848209" class="comment js-comment " data-comment-id="130848209" data-comment-owner-id="4116300" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">This regex will not work if html tag will contains <code>/</code> in between. For example : <code><a href="example.com/test/example.html"></code></span>++ <div class="d-inline-flex ai-center">+– <a href="/users/4116300/roh%c3%act-j%c3%adndal"+ title="22,170 reputation"+ class="comment-user">Rohìt Jíndal</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2022-10-18 11:07:47Z, License: CC BY-SA 4.0' class='relativetime-clean'>Oct 18 at 11:07</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-10535487" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="10844758"></a>+<div id="answer-10844758" class="answer js-answer" data-answerid="10844758" data-parentid="1732348" data-score="56" data-position-on-page="25" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="10844758">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="56">+ 56+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-10844758"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="10844758"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/10844758/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>If you're simply trying to find those tags (without ambitions of parsing) try this regular expression:</p>++<pre><code>/<[^/]*?>/g+</code></pre>++<p>I wrote it in 30 seconds, and tested here:+<a href="http://gskinner.com/RegExr/">http://gskinner.com/RegExr/</a></p>++<p>It matches the types of tags you mentioned, while ignoring the types you said you wanted to ignore.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2012-06-01T05:13:26"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="10844758">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/10844758"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-10844758" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/10844758/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2016-05-31 07:23:30Z' class='relativetime'>May 31, 2016 at 7:23</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Jun 1, 2012 at 5:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-10844758" href="/posts/10844758/revisions" title="show revision history for this post">+ 6 revs, 2 users 96%<br><a href="/users/217867">Lonnie Best</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">2</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-10844758" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="10844758" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-62509129" class="comment js-comment " data-comment-id="62509129" data-comment-owner-id="20938" data-comment-score="2">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="cool">2</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">FYI, you don't need to escape angle brackets. Of course, it does no harm to escape them anyway, but look at the confusion you could have avoided. ;)</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/20938/alan-moore"+ title="72,379 reputation"+ class="comment-user">Alan Moore</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-05-29 07:47:04Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 29, 2016 at 7:47</span></span>+ </div>+ </div>+ </li>+ <li id="comment-62568124" class="comment js-comment " data-comment-id="62568124" data-comment-owner-id="217867" data-comment-score="0">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">I sometimes escape unnecessarily when I'm unsure if something is special character or not. I've edited the answer; it works the same but more concise.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/217867/lonnie-best"+ title="8,930 reputation"+ class="comment-user">Lonnie Best</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2016-05-31 07:23:11Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 31, 2016 at 7:23</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-10844758" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="1738126"></a>+<div id="answer-1738126" class="answer js-answer" data-answerid="1738126" data-parentid="1732348" data-score="54" data-position-on-page="26" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="1738126">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="54">+ 54+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-1738126"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="1738126"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/1738126/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>It seems to me you're trying to match tags without a "/" at the end. Try this:</p>++<pre><code><([a-zA-Z][a-zA-Z0-9]*)[^>]*(?<!/)>+</code></pre>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2009-11-15T17:13:19"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="1738126">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/1738126"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-1738126" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/1738126/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2009-11-15 17:13:19Z' class='relativetime'>Nov 15, 2009 at 17:13</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 19, 2009 at 1:13. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-1738126" href="/posts/1738126/revisions" title="show revision history for this post">+ manixrock+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">1</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-1738126" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="1738126" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ <li id="comment-6771435" class="comment js-comment " data-comment-id="6771435" data-comment-owner-id="402322" data-comment-score="9">+ <div class="js-comment-actions comment-actions">+ <div class="comment-score js-comment-edit-hide">+ <span title="number of 'useful comment' votes received"+ class="warm">9</span>+ </div>+ </div>+ <div class="comment-text js-comment-text-and-form">+ <div class="comment-body js-comment-edit-hide">++ <span class="comment-copy">This does not work. For the input '<x a="<b>"/><y>' the matches are x and y, although x is terminated.</span>++ <div class="d-inline-flex ai-center">+– <a href="/users/402322/ceving"+ title="20,585 reputation"+ class="comment-user">ceving</a>+ </div>+ <span class="comment-date" dir="ltr"><span title='2011-05-04 16:33:18Z, License: CC BY-SA 3.0' class='relativetime-clean'>May 4, 2011 at 16:33</span></span>+ </div>+ </div>+ </li>++ </ul>+ </div>++ <div id="comments-link-1738126" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="10791453"></a>+<div id="answer-10791453" class="answer js-answer" data-answerid="10791453" data-parentid="1732348" data-score="53" data-position-on-page="27" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="10791453">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="53">+ 53+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-10791453"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="10791453"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/10791453/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>It's true that when programming it's usually best to use dedicated parsers and APIs instead of regular expressions when dealing with HTML, especially if accuracy is paramount (e.g., if your processing might have security implications). However, I don’t ascribe to a dogmatic view that XML-style markup should never be processed with regular expressions. There are cases when regular expressions are a great tool for the job, such as when making one-time edits in a text editor, fixing broken XML files, or dealing with file formats that look like but aren’t quite XML. There are some issues to be aware of, but they're not insurmountable or even necessarily relevant.</p>++<p>A simple regex like <code><([^>"']|"[^"]*"|'[^']*')*></code> is usually good enough, in cases such as those I just mentioned. It's a naive solution, all things considered, but it does correctly allow unencoded <code>></code> symbols in attribute values. If you're looking for, e.g., a <code>table</code> tag, you could adapt it as <code></?table\b([^>"']|"[^"]*"|'[^']*')*></code>.</p>++<p>Just to give a sense of what a more "advanced" HTML regex would look like, the following does a fairly respectable job of emulating real-world browser behavior and the HTML5 parsing algorithm:</p>++<pre><code></?([A-Za-z][^\s>/]*)(?:=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)|[^>])*(?:>|$)+</code></pre>++<p>The following matches a fairly strict definition of XML tags (although it doesn't account for the full set of Unicode characters allowed in XML names):</p>++<pre><code><(?:([_:A-Z][-.:\w]*)(?:\s+[_:A-Z][-.:\w]*\s*=\s*(?:"[^"]*"|'[^']*'))*\s*/?|/([_:A-Z][-.:\w]*)\s*)>+</code></pre>++<p>Granted, these don't account for surrounding context and a few edge cases, but even such things could be dealt with if you really wanted to (e.g., by searching between the matches of another regex).</p>++<p>At the end of the day, use the most appropriate tool for the job, even in the cases when that tool happens to be a regex.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2012-05-28T23:27:06"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="10791453">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/10791453"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 3.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-10791453" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/10791453/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2012-05-29 00:01:51Z' class='relativetime'>May 29, 2012 at 0:01</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of May 28, 2012 at 23:27. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-10791453" href="/posts/10791453/revisions" title="show revision history for this post">+ 2 revs<br><a href="/users/1421022">slevithan</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-10791453" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="10791453" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-10791453" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="2226652"></a>+<div id="answer-2226652" class="answer js-answer" data-answerid="2226652" data-parentid="1732348" data-score="50" data-position-on-page="28" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="2226652">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="50">+ 50+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-2226652"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="2226652"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/2226652/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>Although it's not suitable and effective to use regular expressions for that purpose sometimes regular expressions provide quick solutions for simple match problems and in my view it's not that horrbile to use regular expressions for trivial works. </p>++<p>There is a <a href="http://blog.stevenlevithan.com/archives/match-innermost-html-element" rel="noreferrer">definitive blog post</a> about matching innermost HTML elements written by Steven Levithan.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-02-09T03:59:27"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="2226652">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/2226652"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f2.5%2f"+ data-se-share-sheet-license-name="CC BY-SA 2.5"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-2226652" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ answered <a href="/posts/2226652/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })"><span title='2010-02-09 03:59:27Z' class='relativetime'>Feb 9, 2010 at 3:59</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Feb 9, 2010 at 3:59. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-2226652" href="/posts/2226652/revisions" title="show revision history for this post">+ Emre Yazici+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount"></span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-2226652" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="2226652" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-2226652" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="4265601"></a>+<div id="answer-4265601" class="answer js-answer" data-answerid="4265601" data-parentid="1732348" data-score="43" data-position-on-page="29" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="4265601">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="43">+ 43+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-4265601"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="4265601"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>+++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/4265601/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>If you only want the tag names, it should be possible to do this via a regular expression.</p>+<pre><code><([a-zA-Z]+)(?:[^>]*[^/] *)?>+</code></pre>+<p>should do what you need. But I think the solution of "moritz" is already fine. I didn't see it in the beginning.</p>+<p>For all downvoters: In some cases it just makes sense to use a regular expression, because it can be the easiest and quickest solution. I agree that in general you should not parse HTML with regular expressions.</p>+<p>But regular expressions can be a very powerful tool when you have a subset of HTML where you know the format and you just want to extract some values. I did that hundreds of times and almost always achieved what I wanted.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2010-11-24T10:11:39"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="4265601">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/4265601"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-4265601" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/4265601/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-08-14 16:00:50Z' class='relativetime'>Aug 14, 2020 at 16:00</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Nov 24, 2010 at 10:11. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-4265601" href="/posts/4265601/revisions" title="show revision history for this post">+ 5 revs, 2 users 60%<br><a href="/users/518587">morja</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-4265601" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="4265601" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-4265601" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>+++<a name="5210512"></a>+<div id="answer-5210512" class="answer js-answer" data-answerid="5210512" data-parentid="1732348" data-score="39" data-position-on-page="30" data-highest-scored="0" data-question-has-accepted-highest-score="1" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">+ <div class="post-layout">+ <div class="votecell post-layout--left">+ <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="5210512">+ <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is useful"+ aria-pressed="false"+ aria-label="Up vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg>+ </button>+ <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title"+ itemprop="upvoteCount"+ data-value="39">+ 39+ </div>+ <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer "+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ title="This answer is not useful"+ aria-pressed="false"+ aria-label="Down vote"+ data-selected-classes="fc-theme-primary"+ data-unselected-classes="">+ <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg>+ </button>++++<button class="js-saves-btn s-btn s-btn__unset c-pointer py4"+ id="saves-btn-5210512"+ data-controller="s-tooltip"+ data-s-tooltip-placement="right"+ data-s-popover-placement=""+ title="Save this answer."+ aria-pressed="false"+ data-post-id="5210512"+ data-post-type-id="2"+ data-user-privilege-for-post-click="0"+ aria-controls=""+ data-s-popover-auto-show="false"+>+ <svg aria-hidden="true" class="fc-theme-primary-500 js-saves-btn-selected d-none svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+ <svg aria-hidden="true" class="js-saves-btn-unselected svg-icon iconBookmarkAlt" width="18" height="18" viewBox="0 0 18 18"><path d="m9 10.6 4 2.66V3H5v10.26l4-2.66ZM3 17V3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v14l-6-4-6 4Z"/></svg>+</button>++++++++ <div class="js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted">+ <div class="ta-center">+ <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg>+ </div>+ </div>++<div class="js-bounty-award-container flex--item pb4">++ <div class="d-flex fd-column gs4 ai-center">++ <div class="js-bounty-award flex--item s-badge s-badge__bounty s-badge__sm as-center"+ title="This answer has been awarded bounties worth 50 reputation by Cole Tobin" data-controller="s-tooltip" data-s-tooltip-placement="right">+ +50+ </div>++ </div>+</div>++++ <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/5210512/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a>++</div>++ </div>++++<div class="answercell post-layout--right">++ <div class="s-prose js-post-body" itemprop="text">+<p>The OP doesn't seem to say what he needs to do with the tags. For example, does he need to extract inner text, or just examine the tags?</p>+<p>I'm firmly in the camp that says a regular expression is not the be-all, end-all text parser. I've written a large amount of text-parsing code including <a href="http://www.blackbeltcoder.com/Articles/strings/parsing-html-tags-in-c" rel="nofollow noreferrer">this code to parse HTML tags</a>.</p>+<p>While it's true I'm not all that great with regular expressions, I consider regular expressions just too rigid and hard to maintain for this sort of parsing.</p>+ </div>+ <div class="mt24">+ <div class="d-flex fw-wrap ai-start jc-end gs8 gsy">+ <time itemprop="dateCreated" datetime="2011-03-06T12:38:47"></time>+ <div class="flex--item mr16" style="flex: 1 1 100px;">++++<div class="js-post-menu pt2" data-post-id="5210512">+ <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">++ <div class="flex--item">+ <a href="/a/5210512"+ rel="nofollow"+ itemprop="url"+ class="js-share-link js-gps-track"+ title="Short permalink to this answer"+ data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"+ data-controller="se-share-sheet"+ data-se-share-sheet-title="Share a link to this answer"+ data-se-share-sheet-subtitle=""+ data-se-share-sheet-post-type="answer"+ data-se-share-sheet-social="facebook twitter devto"+ data-se-share-sheet-location="2"+ data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"+ data-se-share-sheet-license-name="CC BY-SA 4.0"+ data-s-popover-placement="bottom-start">Share</a>+ </div>++++ <div class="flex--item">+ <button type="button"+ id="btnFollowPost-5210512" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"+ data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"+ data-controller="s-tooltip " data-s-tooltip-placement="bottom"+ data-s-popover-placement="bottom" aria-controls=""+ title="Follow this answer to receive notifications">+ Follow+ </button>+ </div>+++++++ </div>+ <div class="js-menu-popup-container"></div>+</div>+ </div>+ <div class="post-signature flex--item fl0">+<div class="user-info ">+ <div class="user-action-time">+ <a href="/posts/5210512/revisions" title="show all edits to this post"+ class="js-gps-track"+ data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title='2020-08-14 15:59:47Z' class='relativetime'>Aug 14, 2020 at 15:59</span></a>+ </div>+ <div class="user-gravatar32">++ </div>+ <div class="user-details">++ <div class="-flair">++ </div>+ </div>+</div>+ </div>+++ <div class="post-signature flex--item fl0">+ <div class="user-info">+ <div class="user-details">+ <span class="community-wiki" title="This post is community owned as of Mar 6, 2011 at 12:38. Votes do not generate reputation, and it can be edited by users with 100 rep">+ community wiki+ </span>+ </div><br>+ <div class="user-details">+ <a id="history-5210512" href="/posts/5210512/revisions" title="show revision history for this post">+ 2 revs, 2 users 62%<br><a href="/users/522663">Jonathan Wood</a>+ </a>+ </div>+</div>++ </div>+ </div>+++ </div>++</div>+++++ <span class="d-none" itemprop="commentCount">0</span>+ <div class="post-layout--right js-post-comments-component">+ <div id="comments-5210512" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="5210512" data-min-length="15">+ <ul class="comments-list js-comments-list"+ data-remaining-comments-count="0"+ data-canpost="false"+ data-cansee="true"+ data-comments-unavailable="false"+ data-addlink-disabled="true">++ </ul>+ </div>++ <div id="comments-link-5210512" data-rep=50 data-anon=true>+ <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a>+ <span class="js-link-separator dno"> | </span>+ <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>+ </div>+ </div>+ </div>+</div>++<div class="s-pagination site1 themed pager-answers">+<div class="s-pagination--item is-selected" aria-current="page">1</div>+<a class="s-pagination--item js-pagination-item" href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?page=2&tab=scoredesc#tab-top" rel="" title="Go to page 2">2</a>+<a class="s-pagination--item js-pagination-item" href="/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?page=2&tab=scoredesc#tab-top" rel="next" title="Go to page 2"> Next</a></div>++ <aside class="s-notice s-notice__info post-notice js-post-notice mb16" role="status">+ <div class="d-flex fd-column fw-nowrap">+ <div class="d-flex fw-nowrap">+ <div class="flex--item mr8">+ <svg aria-hidden="true" class="svg-icon iconFire" width="18" height="18" viewBox="0 0 18 18"><path opacity=".6" d="M13.18 9c-.8.33-1.46.6-1.97 1.3A9.21 9.21 0 0 0 10 13.89a10 10 0 0 0 1.32-.8 2.53 2.53 0 0 1-.63 2.91h.78a3 3 0 0 0 1.66-.5 4.15 4.15 0 0 0 1.26-1.61c.4-.96.47-1.7.55-2.73.05-1.24-.1-2.49-.46-3.68a2 2 0 0 1-.4.91 2.1 2.1 0 0 1-.9.62Z" fill="#FF6700"/><path d="M10.4 12.11a7.1 7.1 0 0 1 .78-1.76c.3-.47.81-.8 1.37-1.08 0 0-.05-3.27-1.55-5.27-1.5-2-3.37-2.75-4.95-2.61 0 0 4.19 2.94 1.18 5.67-2.14 1.92-3.64 3.81-3.1 5.94a4.14 4.14 0 0 0 3.1 3 4.05 4.05 0 0 1 1.08-3.89C9.42 10.92 8 9.79 8 9.79c.67.02 1.3.28 1.81.72a2 2 0 0 1 .58 1.6Z" fill="#EF2E2E"/></svg>+ </div>+ <div class="flex--item wmn0 fl1 lh-lg">+ <div class="flex--item fl1 lh-lg">+ <b><a href="/help/privileges/protect-questions">Highly active question</a></b>. Earn 10 reputation (not counting the <a href="https://meta.stackexchange.com/questions/141648/what-is-the-association-bonus-and-how-does-it-work">association bonus</a>) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.++ </div>+ </div>+ </div>+ </div>+</aside>++++ <h2 class="bottom-notice" data-loc="1">+ <div>+Not the answer you're looking for? Browse other questions tagged <ul class='ml0 list-ls-none js-post-tag-list-wrapper d-inline'><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/html" class="post-tag" title="show questions tagged 'html'" aria-label="show questions tagged 'html'" rel="tag" aria-labelledby="html-container">html</a></li><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/regex" class="post-tag" title="show questions tagged 'regex'" aria-label="show questions tagged 'regex'" rel="tag" aria-labelledby="regex-container">regex</a></li><li class='d-inline mr4 js-post-tag-list-item'><a href="/questions/tagged/xhtml" class="post-tag" title="show questions tagged 'xhtml'" aria-label="show questions tagged 'xhtml'" rel="tag" aria-labelledby="xhtml-container">xhtml</a></li></ul> or <a href="/questions/ask">ask your own question</a>. </div>+ </h2>+ </div>+ </div>+++<div id="sidebar" class="show-votes" role="complementary" aria-label="sidebar">++++<div class="s-sidebarwidget s-sidebarwidget__yellow s-anchors s-anchors__grayscale mb16" data-tracker="cb=1">+ <ul class="d-block p0 m0">+ <li class="s-sidebarwidget--header s-sidebarwidget__small-bold-text d-flex fc-black-600 d:fc-black-900 bb bbw1">+ The Overflow Blog+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+<svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://stackoverflow.blog/2022/11/11/another-hard-week-of-layoffs-in-tech-ep-505/" class="js-gps-track" data-ga="["community bulletin board","The Overflow Blog","https://stackoverflow.blog/2022/11/11/another-hard-week-of-layoffs-in-tech-ep-505/",null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 0 })">Another hard week in tech (Ep. 505)</a>+ </div>+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+<svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://stackoverflow.blog/2022/11/15/tips-and-tricks-for-succeeding-as-a-developer-emigrating-to-japan-ep-505/" class="js-gps-track" data-ga="["community bulletin board","The Overflow Blog","https://stackoverflow.blog/2022/11/15/tips-and-tricks-for-succeeding-as-a-developer-emigrating-to-japan-ep-505/",null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 1 })">Tips and tricks for succeeding as a developer emigrating to Japan (Ep. 505)</a>+ </div>+ </li>+ <li class="s-sidebarwidget--header s-sidebarwidget__small-bold-text d-flex fc-black-600 d:fc-black-900 bb bbw1">+ Upcoming Events+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+ <div class="favicon favicon-stackoverflow" title="Stack Overflow"></div>+ </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://stackoverflow.com/election" class="fc-danger js-gps-track" data-ga="["community bulletin board","Upcoming Events","https://stackoverflow.com/election",null,null]" data-gps-track="communitybulletin.click({ priority: 5, position: 2 })">2022 Community Moderator Election</a>+ <div>ends <span title='2022-11-22 20:00:00Z' class='relativetime'>in 7 days</span></div>+ </div>+ </li>+ <li class="s-sidebarwidget--header s-sidebarwidget__small-bold-text d-flex fc-black-600 d:fc-black-900 bb bbw1">+ Featured on Meta+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+<div class="favicon favicon-stackexchangemeta" title="Meta Stack Exchange"></div> </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://meta.stackexchange.com/questions/383026/mobile-app-infrastructure-being-decommissioned" class="js-gps-track" data-ga="["community bulletin board","Featured on Meta","https://meta.stackexchange.com/questions/383026/mobile-app-infrastructure-being-decommissioned",null,null]" data-gps-track="communitybulletin.click({ priority: 3, position: 3 })">Mobile app infrastructure being decommissioned</a>+ </div>+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+<div class="favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div> </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://meta.stackoverflow.com/questions/420897/staging-ground-workflow-canned-comments" class="js-gps-track" data-ga="["community bulletin board","Featured on Meta","https://meta.stackoverflow.com/questions/420897/staging-ground-workflow-canned-comments",null,null]" data-gps-track="communitybulletin.click({ priority: 6, position: 4 })">Staging Ground Workflow: Canned Comments</a>+ </div>+ </li>+ <li class="s-sidebarwidget--item d-flex px16">+ <div class="flex--item1 fl-shrink0">+<div class="favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div> </div>+ <div class="flex--item wmn0 ow-break-word">+ <a href="https://meta.stackoverflow.com/questions/421038/the-ask-wizard-2022-has-graduated" class="js-gps-track" data-ga="["community bulletin board","Featured on Meta","https://meta.stackoverflow.com/questions/421038/the-ask-wizard-2022-has-graduated",null,null]" data-gps-track="communitybulletin.click({ priority: 6, position: 5 })">The Ask Wizard (2022) has graduated</a>+ </div>+ </li>+ </ul>+</div>+++<div class="js-zone-container zone-container-sidebar">+ <div id="dfp-tsb" class="everyonelovesstackoverflow everyoneloves__top-sidebar"></div>+ <div class="js-report-ad-button-container " style="width: 300px"></div>+</div>+<div class="js-zone-container zone-container-sidebar">+ <div id="dfp-msb" class="everyonelovesstackoverflow everyoneloves__mid-sidebar"></div>+ <div class="js-report-ad-button-container " style="width: 300px"></div>+</div>+<div id="hireme"></div> <div class="module sidebar-linked">+ <h4 id="h-linked">Linked</h4>+ <div class="linked" data-tracker="lq=1">+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 4456814, position: 0 })">+ <a href="/q/4456814" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">31</div>+ </a>+ <a href="/questions/4456814/writing-regular-expression-in-php-to-wrap-img-with-a?noredirect=1" class="question-hyperlink">Writing regular expression in PHP to wrap <img> with <a></a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 820926, position: 1 })">+ <a href="/q/820926" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">10</div>+ </a>+ <a href="/questions/820926/regular-expression-to-remove-links?noredirect=1" class="question-hyperlink">regular expression to remove links</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 3604109, position: 2 })">+ <a href="/q/3604109" title="Question score (upvotes - downvotes)">+ <div class="answer-votes default">8</div>+ </a>+ <a href="/questions/3604109/regexp-for-html?noredirect=1" class="question-hyperlink">Regexp for html</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 10867836, position: 3 })">+ <a href="/q/10867836" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">10</div>+ </a>+ <a href="/questions/10867836/regex-convert-html-to-valid-xml-tag?noredirect=1" class="question-hyperlink">Regex - Convert HTML to valid XML tag</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 7532202, position: 4 })">+ <a href="/q/7532202" title="Question score (upvotes - downvotes)">+ <div class="answer-votes default">0</div>+ </a>+ <a href="/questions/7532202/regular-expression-for-remove-html-links?noredirect=1" class="question-hyperlink">Regular expression for remove html links</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 2826549, position: 5 })">+ <a href="/q/2826549" title="Question score (upvotes - downvotes)">+ <div class="answer-votes default">6</div>+ </a>+ <a href="/questions/2826549/regular-expression-to-remove-div-tags?noredirect=1" class="question-hyperlink">Regular Expression to remove Div tags</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 56945112, position: 6 })">+ <a href="/q/56945112" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">0</div>+ </a>+ <a href="/questions/56945112/how-to-split-html-string-using-javascript?noredirect=1" class="question-hyperlink">How to split html string using JavaScript</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 3593124, position: 7 })">+ <a href="/q/3593124" title="Question score (upvotes - downvotes)">+ <div class="answer-votes default">6</div>+ </a>+ <a href="/questions/3593124/getting-text-from-inside-an-html-tag-within-a-local-file-with-grep?noredirect=1" class="question-hyperlink">Getting text from inside an HTML tag within a local file with grep</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 1061365, position: 8 })">+ <a href="/q/1061365" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">4</div>+ </a>+ <a href="/questions/1061365/building-regular-expression-regex-to-extract-text-of-html-tag?noredirect=1" class="question-hyperlink">Building Regular Expression (RegEx) to extract text of HTML tag</a>+ </div>+ <div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 1732348, target_question_id: 21689172, position: 9 })">+ <a href="/q/21689172" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">0</div>+ </a>+ <a href="/questions/21689172/why-does-this-regex-not-work-r-logo?noredirect=1" class="question-hyperlink">Why does this regex not work: r'.*logo.*'</a>+ </div>+ <div class="spacer more ml32 pl16 pt8">+ <a href="/questions/linked/1732348">See more linked questions</a>+ </div>+ </div>+</div>++++ <div class="module sidebar-related">+ <h4 id="h-related">Related</h4>+ <div class="related js-gps-related-questions" data-tracker="rq=1">+ <div class="spacer">+ <a href="/q/80357" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">640</div>+ </a>+ <a href="/questions/80357/how-to-match-all-occurrences-of-a-regular-expression-in-ruby" class="question-hyperlink">How to match all occurrences of a regular expression in Ruby</a>+ </div>+ <div class="spacer">+ <a href="/q/1078127" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">155</div>+ </a>+ <a href="/questions/1078127/are-nested-span-tags-ok-in-xhtml" class="question-hyperlink">Are nested span tags OK in XHTML?</a>+ </div>+ <div class="spacer">+ <a href="/q/1409162" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">434</div>+ </a>+ <a href="/questions/1409162/what-regex-will-match-every-character-except-comma-or-semi-colon" class="question-hyperlink">What regex will match every character except comma ',' or semi-colon ';'?</a>+ </div>+ <div class="spacer">+ <a href="/q/1687620" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">488</div>+ </a>+ <a href="/questions/1687620/regex-match-everything-but-a-specific-pattern" class="question-hyperlink">Regex: match everything but a specific pattern</a>+ </div>+ <div class="spacer">+ <a href="/q/3558119" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">745</div>+ </a>+ <a href="/questions/3558119/are-non-void-self-closing-tags-valid-in-html5" class="question-hyperlink">Are (non-void) self-closing tags valid in HTML5?</a>+ </div>+ <div class="spacer">+ <a href="/q/3617797" title="Question score (upvotes - downvotes)">+ <div class="answer-votes large">546</div>+ </a>+ <a href="/questions/3617797/regex-to-match-only-letters" class="question-hyperlink">Regex to match only letters</a>+ </div>+ <div class="spacer">+ <a href="/q/5319840" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">408</div>+ </a>+ <a href="/questions/5319840/greedy-vs-reluctant-vs-possessive-qualifiers" class="question-hyperlink">Greedy vs. Reluctant vs. Possessive Qualifiers</a>+ </div>+ <div class="spacer">+ <a href="/q/6109882" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">648</div>+ </a>+ <a href="/questions/6109882/regex-match-all-characters-between-two-strings" class="question-hyperlink">Regex Match all characters between two strings</a>+ </div>+ <div class="spacer">+ <a href="/q/6863518" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted large">450</div>+ </a>+ <a href="/questions/6863518/regex-match-one-of-two-words" class="question-hyperlink">Regex match one of two words</a>+ </div>+ <div class="spacer">+ <a href="/q/55257291" title="Question score (upvotes - downvotes)">+ <div class="answer-votes answered-accepted default">0</div>+ </a>+ <a href="/questions/55257291/java-regex-match-opening-and-closing-curly-tags" class="question-hyperlink">Java – Regex – match opening and closing curly tags</a>+ </div>+ </div>+ </div>++++ <div id="hot-network-questions" class="module tex2jax_ignore">+ <h4>+ <a href="https://stackexchange.com/questions?tab=hot"+ class="js-gps-track s-link s-link__inherit"+ data-gps-track="posts_hot_network.click({ item_type:1, location:11 })">+ Hot Network Questions+ </a>+ </h4>+ <ul>+ <li >+ <div class="favicon favicon-ell" title="English Language Learners Stack Exchange"></div><a href="https://ell.stackexchange.com/questions/327311/the-meaning-of-lest-you-step-in-a-thousand-puddles-with-fresh-socks-on" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:481 }); posts_hot_network.click({ item_type:2, location:11 })">+ The meaning of "lest you step in a thousand puddles with fresh socks on"+ </a>++ </li>+ <li >+ <div class="favicon favicon-math" title="Mathematics Stack Exchange"></div><a href="https://math.stackexchange.com/questions/4576813/if-an-orthogonal-matrix-represents-a-reflection-show-that-it-is-symmetric" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:69 }); posts_hot_network.click({ item_type:2, location:11 })">+ If an orthogonal matrix represents a reflection, show that it is symmetric.+ </a>++ </li>+ <li >+ <div class="favicon favicon-ai" title="Artificial Intelligence Stack Exchange"></div><a href="https://ai.stackexchange.com/questions/37889/are-softmax-outputs-of-classifiers-true-probabilities" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:658 }); posts_hot_network.click({ item_type:2, location:11 })">+ Are softmax outputs of classifiers true probabilities?+ </a>++ </li>+ <li >+ <div class="favicon favicon-mathematica" title="Mathematica Stack Exchange"></div><a href="https://mathematica.stackexchange.com/questions/276027/why-do-these-patterns-work-with-matchq-but-dont-work-in-a-function-definition" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:387 }); posts_hot_network.click({ item_type:2, location:11 })">+ Why do these patterns work with MatchQ, but don't work in a function definition?+ </a>++ </li>+ <li >+ <div class="favicon favicon-matheducators" title="Mathematics Educators Stack Exchange"></div><a href="https://matheducators.stackexchange.com/questions/25806/what-do-you-do-in-order-to-drag-out-lectures" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:548 }); posts_hot_network.click({ item_type:2, location:11 })">+ What do you do in order to drag out lectures?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-travel" title="Travel Stack Exchange"></div><a href="https://travel.stackexchange.com/questions/177470/do-trains-travel-at-lower-speed-to-establish-time-buffer-for-possible-delays" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:273 }); posts_hot_network.click({ item_type:2, location:11 })">+ Do trains travel at lower speed to establish time buffer for possible delays?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-travel" title="Travel Stack Exchange"></div><a href="https://travel.stackexchange.com/questions/177516/refugee-passport-refugee-travel-document-from-france-to-london" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:273 }); posts_hot_network.click({ item_type:2, location:11 })">+ Refugee Passport / Refugee Travel Document from France to London+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-philosophy" title="Philosophy Stack Exchange"></div><a href="https://philosophy.stackexchange.com/questions/94749/why-do-we-equate-a-mathematical-object-with-what-denotes-it" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:265 }); posts_hot_network.click({ item_type:2, location:11 })">+ Why do we equate a mathematical object with what denotes it?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="https://electronics.stackexchange.com/questions/642509/can-i-connect-a-capacitor-to-a-power-source-directly" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:135 }); posts_hot_network.click({ item_type:2, location:11 })">+ Can I connect a capacitor to a power source directly?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-aviation" title="Aviation Stack Exchange"></div><a href="https://aviation.stackexchange.com/questions/95898/what-does-zero-for-twenty-mean" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:528 }); posts_hot_network.click({ item_type:2, location:11 })">+ What does "Zero for twenty" mean?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-law" title="Law Stack Exchange"></div><a href="https://law.stackexchange.com/questions/86258/is-it-legal-for-blizzard-to-completely-shut-down-overwatch-1-in-order-to-replace" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:617 }); posts_hot_network.click({ item_type:2, location:11 })">+ Is it legal for Blizzard to completely shut down Overwatch 1 in order to replace it with Overwatch 2?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-physics" title="Physics Stack Exchange"></div><a href="https://physics.stackexchange.com/questions/736689/rigorously-prove-the-period-of-small-oscillations-by-directly-integrating" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:151 }); posts_hot_network.click({ item_type:2, location:11 })">+ Rigorously prove the period of small oscillations by directly integrating+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-ell" title="English Language Learners Stack Exchange"></div><a href="https://ell.stackexchange.com/questions/327369/brown-and-clear-water-of-a-stream" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:481 }); posts_hot_network.click({ item_type:2, location:11 })">+ Brown and clear water of a stream+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-workplace" title="The Workplace Stack Exchange"></div><a href="https://workplace.stackexchange.com/questions/188552/how-to-convince-workplace-im-innocent" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:423 }); posts_hot_network.click({ item_type:2, location:11 })">+ How to convince workplace I'm innocent+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="https://electronics.stackexchange.com/questions/642493/flip-flop-timing-diagram-problem" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:135 }); posts_hot_network.click({ item_type:2, location:11 })">+ Flip-flop timing diagram problem+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-movies" title="Movies & TV Stack Exchange"></div><a href="https://movies.stackexchange.com/questions/118997/is-the-portrayal-of-people-of-color-in-enola-holmes-movies-historically-accurate" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:367 }); posts_hot_network.click({ item_type:2, location:11 })">+ Is the portrayal of people of color in Enola Holmes movies historically accurate?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-physics" title="Physics Stack Exchange"></div><a href="https://physics.stackexchange.com/questions/736496/do-solar-panels-act-as-an-electrical-load-on-the-sun" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:151 }); posts_hot_network.click({ item_type:2, location:11 })">+ Do solar panels act as an electrical load on the sun?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-philosophy" title="Philosophy Stack Exchange"></div><a href="https://philosophy.stackexchange.com/questions/94706/ethics-what-is-the-principle-which-advocates-for-individual-behaviour-based-upo" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:265 }); posts_hot_network.click({ item_type:2, location:11 })">+ Ethics: What is the principle which advocates for individual behaviour based upon the consequences of group adoption of that same behaviour?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-stats" title="Cross Validated"></div><a href="https://stats.stackexchange.com/questions/595664/t-test-where-one-sample-has-zero-variance" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:65 }); posts_hot_network.click({ item_type:2, location:11 })">+ t-test where one sample has zero variance?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-boardgames" title="Board & Card Games Stack Exchange"></div><a href="https://boardgames.stackexchange.com/questions/58155/if-pitiless-pontiff-sacrifices-piru-the-volatile-does-it-get-indestructible" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:147 }); posts_hot_network.click({ item_type:2, location:11 })">+ If Pitiless Pontiff sacrifices Piru, the Volatile, does it get indestructible?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-english" title="English Language & Usage Stack Exchange"></div><a href="https://english.stackexchange.com/questions/598414/is-the-use-of-boot-in-itll-boot-you-none-to-try-weird-or-strange" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:97 }); posts_hot_network.click({ item_type:2, location:11 })">+ Is the use of "boot" in "it'll boot you none to try" weird or strange?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-stackoverflow" title="Stack Overflow"></div><a href="https://stackoverflow.com/questions/74417624/how-does-clang-generate-non-looping-code-for-sum-of-squares" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:1 }); posts_hot_network.click({ item_type:2, location:11 })">+ How does clang generate non-looping code for sum of squares?+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-scifi" title="Science Fiction & Fantasy Stack Exchange"></div><a href="https://scifi.stackexchange.com/questions/269464/elemental-novel-where-boy-discovers-he-can-talk-to-the-4-different-elements" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })">+ Elemental Novel where boy discovers he can talk to the 4 different elements+ </a>++ </li>+ <li class="dno js-hidden">+ <div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="https://electronics.stackexchange.com/questions/642392/why-would-you-sense-peak-inductor-current-from-high-side-pmos-transistor-than-nm" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:135 }); posts_hot_network.click({ item_type:2, location:11 })">+ Why would you sense peak inductor current from high side PMOS transistor than NMOS?+ </a>++ </li>+ </ul>++ <a href="#"+ class="show-more js-show-more js-gps-track"+ data-gps-track="posts_hot_network.click({ item_type:3, location:11 })">+ more hot questions+ </a>+</div>++ <div id="feed-link" class="js-feed-link">+ <a href="/feeds/question/1732348" title="Feed of this question and its answers">+ <svg aria-hidden="true" class="fc-orange-400 svg-icon iconRss" width="18" height="18" viewBox="0 0 18 18"><path d="M3 1a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3Zm0 1.5c6.9 0 12.5 5.6 12.5 12.5H13C13 9.55 8.45 5 3 5V2.5Zm0 5c4.08 0 7.5 3.41 7.5 7.5H8c0-2.72-2.28-5-5-5V7.5Zm0 5c1.36 0 2.5 1.14 2.5 2.5H3v-2.5Z"/></svg>+ Question feed+ </a>+ </div>+ <aside class="s-modal js-feed-link-modal" tabindex="-1" role="dialog" aria-labelledby="feed-modal-title" aria-describedby="feed-modal-description" aria-hidden="true">+ <div class="s-modal--dialog js-modal-dialog wmx4" role="document" data-controller="se-draggable">+ <h1 class="s-modal--header fw-bold js-first-tabbable" id="feed-modal-title" data-se-draggable-target="handle" tabindex="0">+ Subscribe to RSS+ </h1>+ <div class="d-flex gs4 gsy fd-column">+ <div class="flex--item">+ <label class="d-block s-label c-default" for="feed-url">+ Question feed+ <p class="s-description mt2" id="feed-modal-description">To subscribe to this RSS feed, copy and paste this URL into your RSS reader.</p>+ </label>+ </div>+ <div class="d-flex ps-relative">+ <input class="s-input" type="text" name="feed-url" id="feed-url" readonly="readonly" value="https://stackoverflow.com/feeds/question/1732348" />+ <svg aria-hidden="true" class="s-input-icon fc-orange-400 svg-icon iconRss" width="18" height="18" viewBox="0 0 18 18"><path d="M3 1a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3Zm0 1.5c6.9 0 12.5 5.6 12.5 12.5H13C13 9.55 8.45 5 3 5V2.5Zm0 5c4.08 0 7.5 3.41 7.5 7.5H8c0-2.72-2.28-5-5-5V7.5Zm0 5c1.36 0 2.5 1.14 2.5 2.5H3v-2.5Z"/></svg>+ </div>+ </div>+ <a class="s-modal--close s-btn s-btn__muted js-modal-close js-last-tabbable" href="#" aria-label="Close">+ <svg aria-hidden="true" class="svg-icon iconClearSm" width="14" height="14" viewBox="0 0 14 14"><path d="M12 3.41 10.59 2 7 5.59 3.41 2 2 3.41 5.59 7 2 10.59 3.41 12 7 8.41 10.59 12 12 10.59 8.41 7 12 3.41Z"/></svg>+ </a>+ </div>+ </aside>++</div>++ </div>+<script>StackExchange.ready(function(){$.get('/posts/1732348/ivc/31d0');});</script>+<noscript><div><img src="/posts/1732348/ivc/31d0" class="dno" alt="" width="0" height="0"></div></noscript><div style="display:none" id="js-codeblock-lang">lang-html</div></div>+++ </div>+ </div>++++<script>;(()=>{"use strict";var __webpack_modules__={23:(e,t,s)=>{s.d(t,{Z7:()=>l,eq:()=>n,kG:()=>r});const a=/^\/tags\//.test(location.pathname)||/^\/questions\/tagged\//.test(location.pathname)?"tag-pages":/^\/$/.test(location.pathname)||/^\/home/.test(location.pathname)?"home-page":"question-pages";let i=location.hostname;const o={slots:{lb:[[728,90]],mlb:[[728,90]],smlb:[[728,90]],bmlb:[[728,90]],sb:e=>"dfp-tsb"===e?[[300,250],[300,600]]:[[300,250]],"tag-sponsorship":[[730,135]],"mobile-below-question":[[320,50],[300,250]],msb:[[300,250],[300,600]],"talent-conversion-tracking":[[1,1]],"site-sponsorship":[[230,60]]},ids:{"dfp-tlb":"lb","dfp-mlb":"mlb","dfp-smlb":"smlb","dfp-bmlb":"bmlb","dfp-tsb":"sb","dfp-isb":"sb","dfp-tag":"tag-sponsorship","dfp-msb":"msb","dfp-sspon":"site-sponsorship","dfp-m-aq":"mobile-below-question"},idsToExcludeFromAdReports:["dfp-sspon"]};function r(){return Object.keys(o.ids)}function n(e){return o.idsToExcludeFromAdReports.indexOf(e)<0}function l(e){var t=e.split("_")[0];const s=o.ids[t];let r=o.slots[s];return"function"==typeof r&&(r=r(t)),{path:`/248424177/${i}/${s}/${a}`,sizes:r,zone:s}}},865:(e,t,s)=>{function a(e){return"string"==typeof e?document.getElementById(e):e}function i(e){return!!(e=a(e))&&"none"===getComputedStyle(e).display}function o(e){return!i(e)}function r(e){return!!e}function n(e){return/^\s*$/.test(a(e).innerHTML)}function l(e){const{style:t}=e;t.height=t.maxHeight=t.minHeight="auto",t.display="none"}function d(e){const{style:t}=e;t.height=t.maxHeight=t.minHeight="auto",t.display="none",[].forEach.call(e.children,d)}function c(e){const{style:t}=e;t.height=t.maxHeight=t.minHeight="auto",t.removeProperty("display")}function p(e){const t=document.createElement("script");t.src=e,document.body.appendChild(t)}function g(e){return s=e,(t=[]).push=function(e){return s(),delete this.push,this.push(e)},t;var t,s}function h(e){let t="function"==typeof HTMLTemplateElement;var s=document.createElement(t?"template":"div");return e=e.trim(),s.innerHTML=e,t?s.content.firstChild:s.firstChild}s.d(t,{$Z:()=>c,Bv:()=>h,Gx:()=>p,Nj:()=>a,QZ:()=>g,cf:()=>l,pn:()=>o,wo:()=>d,xb:()=>n,xj:()=>i,yb:()=>r})},763:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>AdReports});var _common_helper__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(865),_console__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(276),_ad_units__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(23);class AdReports{constructor(e,t){if(this.googletag=e,this.cam=t,this.allowedFileTypes=["image/png","image/jpg","image/jpeg"],this.ignoreValidation=!1,this.cam=t,this.callOnButtonClick=e=>this.onButtonClick(e),this.googletag.pubads().addEventListener("slotRenderEnded",e=>this.handleSlotRendered(e)),Array.isArray(t.slotsRenderedEvents))for(var s=0;s<t.slotsRenderedEvents.length;s++)this.handleSlotRendered(t.slotsRenderedEvents[s])}handleSlotRendered(e){if(e&&e.slot&&!e.isEmpty&&(e.creativeId||e.lineItemId||!e.isEmpty)){var t=e.slot.getSlotElementId();if(t){var s=document.getElementById(t);if(s&&(0,_ad_units__WEBPACK_IMPORTED_MODULE_0__.eq)(t)){var a=s?.closest(".js-zone-container")?.querySelector(".js-report-ad-button-container");a.append(this.createButton(e)),a.style.height="24px"}}}}async onButtonClick(e){e.preventDefault();let t=e.target;const s=t.dataset.modalUrl,a=t.dataset.googleEventData;return await this.loadModal(s,t,a),!1}createButton(e){let t=document.createElement("button");var s=JSON.stringify(e);return t.dataset.googleEventData=s,t.dataset.modalUrl=this.cam.opt.adReportUrl,t.dataset.adUnit=e.slot.getSlotElementId(),t.classList.add("js-report-ad","s-btn","s-btn__link","fs-fine","mt2","float-right"),t.append(document.createTextNode(this.cam.opt.adReportText)),t.removeEventListener("click",this.callOnButtonClick),t.addEventListener("click",this.callOnButtonClick),t}async loadModal(url,$link,googleEventData){try{await window.StackExchange.helpers.loadModal(url,{returnElements:window.$($link)}),this.initForm(googleEventData)}catch(e){var message="",response=e.responseText?eval(`(${e.responseText})`):null;message=response&&response.isLoggedOut?this.cam.opt.adReportLoginExpiredMessage:this.cam.opt.adReportLoginErrorMessage,window.StackExchange.helpers.showToast(message,{type:"danger"})}}removeModal(){window.StackExchange.helpers.closePopups(document.querySelectorAll("."+this.cam.opt.adReportModalClass),"dismiss")}initForm(e,t=!1){this.ignoreValidation=t,this.$form=document.querySelector(".js-ad-report-form"),this.$googleEventData=this.$form.querySelector(".js-json-data"),this.$adReportReasons=this.$form.querySelectorAll(".js-ad-report-reason"),this.$adReportReasonOther=this.$form.querySelector(".js-ad-report-reason-other"),this.$fileUploaderInput=this.$form.querySelector(".js-file-uploader-input"),this.$imageUploader=this.$form.querySelector(".js-image-uploader"),this.$clearImageUpload=this.$form.querySelector(".js-clear-image-upload"),this.$imageUploaderText=this.$form.querySelector(".js-image-uploader-text"),this.$imageUploaderPreview=this.$form.querySelector(".js-image-uploader-preview"),this.$fileErrorMessage=this.$form.querySelector(".js-file-error");const s=this.$form.querySelector(".js-drag-drop-enabled"),a=this.$form.querySelector(".js-drag-drop-disabled");this.$googleEventData.value=e,this.$adReportReasons.forEach((e,t)=>e.addEventListener("change",e=>{this.$adReportReasonOther.classList.toggle("d-none","3"!==e.target.value)})),this.$fileUploaderInput.addEventListener("change",()=>{this.validateFileInput()&&this.updateImagePreview(this.$fileUploaderInput.files)}),this.$clearImageUpload.addEventListener("click",e=>{e.preventDefault(),this.clearImageUpload()});try{this.$fileUploaderInput[0].value="",this.$imageUploader.addEventListener("dragenter dragover dragleave drop",this.preventDefaults),this.$imageUploader.addEventListener("dragenter dragover",this.handleDragStart),this.$imageUploader.addEventListener("dragleave drop",this.handleDragEnd),this.$imageUploader.addEventListener("drop",this.handleDrop)}catch(e){s.classList.add("d-none"),a.classList.remove("d-none")}this.$form.removeEventListener("",this.handleDragEnd),this.$form.addEventListener("submit",async e=>(e.preventDefault(),this.submitForm(),!1))}clearImageUpload(){this.$fileUploaderInput.value="",this.$imageUploaderPreview.setAttribute("src",""),this.$imageUploaderPreview.classList.add("d-none"),this.$clearImageUpload.classList.add("d-none"),this.$imageUploaderText.classList.remove("d-none"),this.$imageUploader.classList.add("p16","ba","bas-dashed","bc-black-100")}preventDefaults(e){e.preventDefault(),e.stopPropagation()}handleDragStart(e){this.$imageUploader.classList.remove("bas-dashed"),this.$imageUploader.classList.add("bas-solid","bc-black-100")}handleDragEnd(e){this.$imageUploader.classList.remove("bas-solid","bc-black-100"),this.$imageUploader.classList.add("bas-dashed")}handleDrop(e){var t=e.originalEvent.dataTransfer.files;FileReader&&t&&1===t.length&&(this.$fileUploaderInput.files=t,this.validateFileInput()&&this.updateImagePreview(t))}setError(e){this.$fileErrorMessage.parentElement.classList.toggle("has-error",e)}updateImagePreview(e){this.$imageUploader.classList.remove("p16","ba","bas-dashed","bc-black-100"),this.$clearImageUpload.classList.remove("d-none"),this.$imageUploaderText.classList.add("d-none");var t=new FileReader;t.onload=e=>{null!=e.target&&(this.$imageUploaderPreview.setAttribute("src",e.target.result),this.$imageUploaderPreview.classList.remove("d-none"))},t.readAsDataURL(e[0])}validateFileInput(){if(this.ignoreValidation)return!0;const e=this.cam.opt.adReportFileTypeErrorMessage,t=this.cam.opt.adReportFileSizeErrorMessage;if(null==this.$fileUploaderInput.files)return!1;var s=this.$fileUploaderInput.files[0];return null==s?(this.setError(!0),!1):this.allowedFileTypes.indexOf(s.type)<0?(this.$fileErrorMessage.textContent=e,this.$fileErrorMessage.classList.remove("d-none"),this.setError(!0),!1):s.size>2097152?(this.$fileErrorMessage.textContent=t,this.$fileErrorMessage.classList.remove("d-none"),this.setError(!0),!1):(this.$fileErrorMessage.classList.add("d-none"),this.setError(!1),!0)}async submitForm(){if(!this.validateFileInput())return!1;this.$form.querySelector("[type=submit]").setAttribute("disabled","true");var e=JSON.parse(this.$googleEventData.value||"{}");e.Reason=parseInt(this.$form.querySelector(".js-ad-report-reason:checked").value,10),e.Description=this.$adReportReasonOther.value,this.$googleEventData.value=JSON.stringify(e);var t=new FormData(this.$form);try{const e=await window.fetch(this.$form.getAttribute("action"),{method:this.$form.getAttribute("method"),body:t,cache:"no-cache"}),a=e.headers.get("content-type")||"",i=await e.text();if(!e.ok)throw new Error("response not valid");if(0===a.indexOf("text/html")){var s=(0,_common_helper__WEBPACK_IMPORTED_MODULE_1__.Bv)(i);const e=s?s.querySelector(".js-modal-content"):null;if(_console__WEBPACK_IMPORTED_MODULE_2__.cM("$popupContent"),_console__WEBPACK_IMPORTED_MODULE_2__.cM(e),!e)throw new Error(`Could not find .js-modal-content in response from ${this.$form.getAttribute("action")}`);document.querySelector(".js-modal-content").replaceWith(e)}else window.StackExchange.helpers.showToast(this.cam.opt.adReportThanksText,{type:"success"}),this.removeModal()}catch(e){window.StackExchange.helpers.showToast(this.cam.opt.adReportErrorText,{type:"danger"})}finally{let e=this.$form.querySelector("[type=submit]");e&&e.removeAttribute("disabled")}}}},276:(e,t,s)=>{function a(...e){}s.d(t,{cM:()=>a})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](s,s.exports,__webpack_require__),s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={};(()=>{var e=__webpack_require__(276),t=(e=>(e[e.Above=0]="Above",e[e.Below=1]="Below",e))(t||{});const s=Object.assign({},{"lib":"https://cdn.sstatic.net/clc/js/bundles/gam_loader_script/gam_loader_script.bundle.741.6e0a482112e96aa6b370.min.js","style":null,"u":null,"wa":true,"kt":2000,"tto":true,"h":"clc.stackoverflow.com","allowed":"^(((talent\\.)?stackoverflow)|(blog\\.codinghorror)|(.*\\.googlesyndication)|(serverfault|askubuntu)|([^\\.]+\\.stackexchange))\\.com$","wv":true,"al":false,"abd":true,"cpa_liid":[5882654614],"cpa_cid":[138377597667],"dp":false});var a=__webpack_require__(23),i=__webpack_require__(865),o=__webpack_require__(763);window.cam=new class{constructor(){this.gptImported=!1,this.collapsed={},this.clc_options=s,e.cM("constructor"),this.initGpt(),window.StackExchange.ready(()=>this.init())}init(){if(e.cM("init"),void 0===this.opt)throw new Error("opt not set, required by GAM Loader");this.opt.adReportEnabled?googletag.cmd.push(()=>this.adReports=new o.t(googletag,this)):googletag.cmd.push(()=>this.handleSlotRenderedNoAdReport()),e.cM("setup message handler"),window.addEventListener("message",e=>{this.onmessage(e)})}handleSlotRenderedNoAdReport(){if(googletag.pubads().addEventListener("slotRenderEnded",e=>this.applyExtraMarginBottom(e)),Array.isArray(this.slotsRenderedEvents))for(var e=0;e<this.slotsRenderedEvents.length;e++)this.applyExtraMarginBottom(this.slotsRenderedEvents[e])}onmessage(t){let s="omni";if(t.data&&("string"==typeof t.data||t.data instanceof String))if(0===t.data.indexOf("get-omni-")){e.cM("Recevied get-omni message, sending back omni");var a=t.source,o=this.opt.omni,r="string"==typeof o?o:"";a.postMessage([s,r].join("|"),"*")}else if(0===t.data.indexOf("collapse-")){e.cM("Recevied collapse message, collapse ad iframe"),e.cM(t);for(var n=t.source.window,l=document.getElementsByTagName("IFRAME"),d=0;d<l.length;d++){var c=l[d];if(c.contentWindow==n)return void(0,i.wo)(c.parentElement.parentElement.parentElement)}}else if(0===t.data.indexOf("resize|")){e.cM("Recevied resize message, resize ad iframe"),e.cM(t);let s=this._getFrameByEvent(t),a=t.data.split("|"),i=parseFloat(a[1])+.5;e.cM("New iframe height "+i),s.height=i.toString(),s.parentElement.style.height=i.toString()+"px"}}_getFrameByEvent(e){return Array.from(document.getElementsByTagName("iframe")).filter(t=>t.contentWindow===e.source)[0]}classifyZoneIds(e){const t=e.map(i.Nj).filter(i.yb);return{eligible:t.filter(i.xb).filter(i.pn),ineligible:t.filter(i.xj)}}applyExtraMarginBottom(e){if(e&&e.slot&&!e.isEmpty&&(e.creativeId||e.lineItemId||!e.isEmpty)){var t=e.slot.getSlotElementId();if(t){var s=document.getElementById(t);if(s&&(0,a.eq)(t)){var i=s?.closest(".js-zone-container");i.style.marginBottom="24px"}}}}load(s=(0,a.kG)()){const o=this.opt.tlb_position===t.Above?["dfp-mlb","dfp-smlb"]:["dfp-mlb","dfp-smlb","dfp-tlb"];if(!this.isGptReady())return e.cM("Initializing..."),this.initGpt(),void googletag.cmd.push(()=>this.load(s));e.cM("Attempting to load ads into ids: ",s);const{eligible:r,ineligible:n}=this.classifyZoneIds(s);if(this.initDebugPanel(googletag,r.concat(n)),r.forEach(e=>(0,i.cf)(e)),n.forEach(i.wo),0!==r.length){e.cM("Eligible ids:",r),this.opt.abd&&this.appendAdblockDetector();var l=googletag.pubads().getSlots().filter(e=>s.indexOf(e.getSlotElementId())>=0);googletag.destroySlots(l),this.opt.sf&&(googletag.pubads().setForceSafeFrame(!0),googletag.pubads().setSafeFrameConfig({allowOverlayExpansion:!0,allowPushExpansion:!0,sandbox:!0})),e.cM("Targeting consent: Checking..."),void 0!==this.opt.targeting_consent&&(e.cM("Targeting consent: Parameter set"),e.cM("Targeting consent: Consent given? ",this.opt.targeting_consent),googletag.pubads().setRequestNonPersonalizedAds(this.opt.targeting_consent?0:1),this.opt.targeting_consent||googletag.pubads().setPrivacySettings({limitedAds:!0})),this.opt.ll||googletag.pubads().enableSingleRequest(),cam.sreEvent||(googletag.pubads().addEventListener("slotRenderEnded",e=>this.onSlotRendered(e)),cam.sreEvent=!0),this.setTargeting(googletag);var d=r.filter(e=>!this.opt.ll||o.indexOf(e.id)<0),c=r.filter(e=>!!this.opt.ll&&o.indexOf(e.id)>=0);e.cM("Up front ids:",d),e.cM("Lazy loaded ids:",c),d.forEach(t=>{e.cM(`Defining ad for element ${t.id}`),this.defineSlot(t.id,googletag),t.setAttribute("data-dfp-zone","true")}),googletag.enableServices(),d.forEach(t=>{e.cM(`Displaying ad for element ${t.id}`),googletag.cmd.push(()=>googletag.display(t.id))}),this.opt.ll&&(e.cM("Enabling lazy loading for GAM"),googletag.pubads().enableLazyLoad({fetchMarginPercent:0,renderMarginPercent:0}),e.cM("Setting up lazy loaded ad units"),c.forEach(t=>{e.cM(`Lazy loading - Defining Slot ${t.id}`),this.defineSlot(t.id,googletag)}),c.forEach(t=>{e.cM(`Lazy loading - Displaying ad for element ${t.id}`),googletag.cmd.push(()=>googletag.display(t.id))}))}else e.cM("Found no ad ids on page")}setTargeting(t){let s=this.opt.targeting;"SystemDefault"===s.ProductVariant&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?s.ProductVariant="Dark":s.ProductVariant="Light"),Object.keys(s).forEach(a=>{e.cM(`-> targeting - ${a}: ${s[a]}`),t.pubads().setTargeting(a,s[a])})}appendAdblockDetector(){const e=document.createElement("div");e.className="adsbox",e.id="clc-abd",e.style.position="absolute",e.style.pointerEvents="none",e.innerHTML=" ",document.body.appendChild(e)}onSlotRendered(s){try{const r=s.slot.getSlotElementId();let n=[];r||n.push("id=0");const l=document.getElementById(r);if(r&&!l&&n.push("el=0"),0!==n.length)return void this.stalled(n.join("&"));const{path:d,sizes:c,zone:p}=(0,a.Z7)(r);if(this.collapsed[p]&&s.isEmpty)return e.cM(`No line item for the element #${l.id}... collapsing.`),void(0,i.wo)(l);if(this.slotsRenderedEvents.push(s),s.lineItemId||s.creativeId||!s.isEmpty){e.cM(`Rendered ad for element #${l.id} [line item #${s.lineItemId}]`),e.cM(s);var o=l.parentElement;if(o.classList.contains("js-zone-container")){switch((0,i.cf)(o),r){case"dfp-tlb":this.opt.tlb_position===t.Above?o.classList.add("mb8"):o.classList.add("mt16");break;case"dfp-tag":o.classList.add("mb8");break;case"dfp-msb":o.classList.add("mt16");break;case"dfp-mlb":case"dfp-smlb":case"dfp-bmlb":o.classList.add("my8");break;case"dfp-isb":o.classList.add("mt24");break;case"dfp-m-aq":o.classList.add("my12"),o.classList.add("mx-auto")}(0,i.$Z)(o),(0,i.$Z)(l)}else e.cM(`No ad for element #${l.id}, collapsing`),e.cM(s),(0,i.wo)(l)}}catch(e){this.stalled("e=1")}}stalled(e){(new Image).src=`https://${this.clc_options.h}/stalled.gif?${e}`}defineSlot(t,s){"dfp-isb"===t&&(e.cM("-> targeting - Sidebar: Inline"),s.pubads().setTargeting("Sidebar",["Inline"])),"dfp-tsb"===t&&(e.cM("-> targeting - Sidebar: Right"),s.pubads().setTargeting("Sidebar",["Right"]));const{path:i,sizes:o,zone:r}=(0,a.Z7)(t);e.cM(`Defining slot for ${t}: ${i}, sizes: ${JSON.stringify(o)}`),s.defineSlot(i,o,t).addService(s.pubads())}importGptLibrary(){this.gptImported||(this.gptImported=!0,void 0===this.opt.targeting_consent||this.opt.targeting_consent?(0,i.Gx)("https://securepubads.g.doubleclick.net/tag/js/gpt.js"):(0,i.Gx)("https://pagead2.googlesyndication.com/tag/js/gpt.js"))}isGptReady(){return"undefined"!=typeof googletag&&!!googletag.apiReady}initGpt(){this.isGptReady()||(window.googletag={cmd:(0,i.QZ)(()=>this.importGptLibrary())})}initDebugPanel(t,s){e.cM("initDebugPanel"),e.cM("Not showing debug panel")}}})()})();</script><script type="text/javascript">+ var cam = cam || {};+ if (typeof cam.opt === 'undefined') {+ cam.opt = {};+ }+ var opt = cam.opt;++ opt.omni = 'BIJeWSbjxtoIAAAAAPxuGgACAAAAAgAAAAAAEgAAAHxodG1sfHJlZ2V4fHhodG1sfAAweXZvsjIIxHgu';++ opt.sf = !0;+ opt.hb = !1;+ opt.ll = !0;+ opt.tlb_position = 0;+ opt.targeting_consent = !1;+ opt.performance_consent = !1;++ opt.targeting = {Registered:['false'],'so-tag':['html','regex','xhtml'],'tag-reportable':['html','regex','xhtml'],'tag-non-reportable':['html','regex','xhtml'],NumberOfAnswers:['20-plus']};+ opt.adReportEnabled = !0;+ opt.adReportUrl = '/ads/report-ad';+ opt.adReportText = 'Report this ad';+ opt.adReportFileTypeErrorMessage = 'Please select a PNG or JPG file.';+ opt.adReportFileSizeErrorMessage = 'The file must be under 2 MiB.';+ opt.adReportErrorText = 'Error uploading ad report.';+ opt.adReportThanksText = 'Thanks for your feedback. We’ll review this against our code of conduct and take action if necessary.';+ opt.adReportLoginExpiredMessage = 'Your login session has expired, please login and try again.';+ opt.adReportLoginErrorMessage = 'An error occurred when loading the report form - please try again';+ opt.adReportModalClass = 'js-ad-report';+++ opt.targeting.TargetingConsent = ['False_Passive'];++ const urlParams = new URLSearchParams(window.location.search);+ if (urlParams.has('dfptestads')) {+ const dfptestads = urlParams.get('dfptestads');+ opt.targeting.DfpTestAds = dfptestads;+ }++ var googletag = googletag || {};+ googletag.cmd = googletag.cmd || [];+ googletag.cmd.push(function () { cam.load(); });+</script>+++ <footer id="footer" class="site-footer js-footer" role="contentinfo">+ <div class="site-footer--container">+ <div class="site-footer--logo">++ <a href="https://stackoverflow.com" aria-label="Stack Overflow"><svg aria-hidden="true" class="native svg-icon iconLogoGlyphMd" width="32" height="37" viewBox="0 0 32 37"><path d="M26 33v-9h4v13H0V24h4v9h22Z" fill="#BCBBBB"/><path d="m21.5 0-2.7 2 9.9 13.3 2.7-2L21.5 0ZM26 18.4 13.3 7.8l2.1-2.5 12.7 10.6-2.1 2.5ZM9.1 15.2l15 7 1.4-3-15-7-1.4 3Zm14 10.79.68-2.95-16.1-3.35L7 23l16.1 2.99ZM23 30H7v-3h16v3Z" fill="#F48024"/></svg></a>+ </div>+ <nav class="site-footer--nav">+ <div class="site-footer--col">+ <h5 class="-title"><a href="https://stackoverflow.com" class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 15})">Stack Overflow</a></h5>+ <ul class="-list js-primary-footer-links">+ <li><a href="/questions" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 16})">Questions</a></li>+ <li><a href="/help" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 3 })">Help</a></li>+ </ul>+ </div>+ <div class="site-footer--col">+ <h5 class="-title"><a href="https://stackoverflow.co/" class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 19 })">Products</a></h5>+ <ul class="-list">+ <li><a href="https://stackoverflow.co/teams" class="js-gps-track -link"+ data-ga="["teams traffic","footer - site nav","stackoverflow.com/teams",null,{"dimension4":"teams"}]"+ data-gps-track="footer.click({ location: 2, link: 29 })">Teams</a></li>+ <li><a href="https://stackoverflow.co/advertising" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 21 })">Advertising</a></li>+ <li><a href="https://stackoverflow.co/collectives" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 40 })">Collectives</a></li>+ <li><a href="https://stackoverflow.co/talent" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 20 })">Talent</a></li>+ </ul>+ </div>+ <div class="site-footer--col">+ <h5 class="-title"><a class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://stackoverflow.co/">Company</a></h5>+ <ul class="-list">+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://stackoverflow.co/">About</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 27 })" href="https://stackoverflow.co/company/press">Press</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 9 })" href="https://stackoverflow.co/company/work-here">Work Here</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 7 })" href="https://stackoverflow.com/legal">Legal</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 8 })" href="https://stackoverflow.com/legal/privacy-policy">Privacy Policy</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 37 })" href="https://stackoverflow.com/legal/terms-of-service">Terms of Service</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 13 })" href="https://stackoverflow.co/company/contact">Contact Us</a></li>+ <li class="" id="consent-footer-link"><a class="js-gps-track -link js-cookie-settings" data-gps-track="footer.click({ location: 2, link: 38 })" href="#" data-consent-popup-loader="footer">Cookie Settings</a></li>+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 39 })" href="https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a></li>+ </ul>+ </div>+ <div class="site-footer--col site-footer--categories-nav">+ <div>+ <h5 class="-title"><a href="https://stackexchange.com" data-gps-track="footer.click({ location: 2, link: 30 })">Stack Exchange Network</a></h5>+ <ul class="-list">+ <li>+ <a href="https://stackexchange.com/sites#technology" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Technology+ </a>+ </li>+ <li>+ <a href="https://stackexchange.com/sites#culturerecreation" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Culture & recreation+ </a>+ </li>+ <li>+ <a href="https://stackexchange.com/sites#lifearts" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Life & arts+ </a>+ </li>+ <li>+ <a href="https://stackexchange.com/sites#science" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Science+ </a>+ </li>+ <li>+ <a href="https://stackexchange.com/sites#professional" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Professional+ </a>+ </li>+ <li>+ <a href="https://stackexchange.com/sites#business" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Business+ </a>+ </li>++ <li class="mt16 md:mt0">+ <a href="https://api.stackexchange.com/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ API+ </a>+ </li>++ <li>+ <a href="https://data.stackexchange.com/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })">+ Data+ </a>+ </li>+ </ul>+ </div>+ </div>+ </nav>+ <div class="site-footer--copyright fs-fine md:mt24">+ <ul class="-list -social md:mb8">+ <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link:4 })" href="https://stackoverflow.blog?blb=1">Blog</a></li>+ <li><a href="https://www.facebook.com/officialstackoverflow/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 31 })">Facebook</a></li>+ <li><a href="https://twitter.com/stackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 32 })">Twitter</a></li>+ <li><a href="https://linkedin.com/company/stack-overflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 33 })">LinkedIn</a></li>+ <li><a href="https://www.instagram.com/thestackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 36 })">Instagram</a></li>+ </ul>++ <p class="md:mb0">+Site design / logo © 2022 Stack Exchange Inc; user contributions licensed under <span class='td-underline'><a href="https://stackoverflow.com/help/licensing">CC BY-SA</a></span>. <span id="svnrev">rev 2022.11.14.43032</span>+ </p>+ </div>+ </div>++ </footer>+++ <!-- Google tag (gtag.js) -->+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-WCZ03SZFCQ"></script>+ <script>+ window.dataLayer = window.dataLayer || [];+ function gtag() { dataLayer.push(arguments); }+ </script>+ <script>+ StackExchange.ready(function() {++ var ga3Settings = {+ autoLink: ["stackoverflow.blog","info.stackoverflowsolutions.com","stackoverflowsolutions.com"],+ sendTitles: true,+ tracker: window.ga,+ trackingCodes: [+ 'UA-108242619-1'+ ],+ checkDimension: 'dimension42'+ };++ var customGA4Dimensions = {};+++ var ga4Settings = {+ tracker: gtag,+ trackingCodes: [+ 'G-WCZ03SZFCQ'+ ],+ consentsToPerformanceCookies: "denied",+ consentsToTargetingCookies: "denied",+ eventParameters: customGA4Dimensions,+ checkForAdBlock: true+ };++ StackExchange.ga.init({ GA3: ga3Settings, GA4: ga4Settings });+++ StackExchange.ga.setDimension('dimension2', '|html|regex|xhtml|');+++ StackExchange.ga.setDimension('dimension3', 'Questions/Show');+++ StackExchange.ga.setDimension('dimension7', "1668500812.1593626347");++ StackExchange.ga.trackPageView();+ });+ </script>+++ <div class="ff-sans ps-fixed z-nav-fixed ws4 sm:w-auto p32 sm:p16 bg-black-750 fc-white bar-lg b16 l16 r16 js-consent-banner">+ <svg aria-hidden="true" class="mln4 mb24 sm:d-none svg-spot spotCookieLg" style="color: var(--theme-button-filled-background-color)" width="96" height="96" viewBox="0 0 96 96">+ <path d="M35 45.5a7.5 7.5 0 11-15 0 7.5 7.5 0 0115 0zM63.5 63a7.5 7.5 0 100-15 7.5 7.5 0 000 15zm-19 19a7.5 7.5 0 100-15 7.5 7.5 0 000 15z" opacity=".2"/>+ <path d="M56.99 2.53a23.1 23.1 0 0114.66 6.15h.01l.01.02c.57.55.61 1.27.5 1.74v.07a10.95 10.95 0 01-3.07 4.77 9 9 0 01-6.9 2.5 10.34 10.34 0 01-9.72-10.44v-.08a10 10 0 011.03-3.74l.01-.03.02-.02c.28-.5.82-.92 1.52-.95.63-.02 1.27-.02 1.93.01zm12.04 7.83a20.1 20.1 0 00-12.2-4.83l-.92-.03c-.23.6-.38 1.25-.43 1.94a7.34 7.34 0 006.95 7.34 6 6 0 004.64-1.7c.94-.88 1.6-1.9 1.96-2.72zm15.3 8.76a6.84 6.84 0 00-5.09-.24 7.9 7.9 0 00-3.28 2.05 1.8 1.8 0 00-.3 1.95l.02.02v.02a15.16 15.16 0 008.74 7.47c.64.23 1.32.08 1.8-.33a6.63 6.63 0 001.63-1.97l.01-.03.01-.03c1.67-3.5-.12-7.32-3.54-8.91zm-5.5 3.28c.36-.25.82-.5 1.35-.67.92-.3 1.92-.35 2.89.1 2.14 1 2.92 3.14 2.11 4.88-.12.21-.26.41-.43.6l-.26-.1a12.29 12.29 0 01-5.66-4.81zM32 24a2 2 0 11-4 0 2 2 0 014 0zm12 21a2 2 0 11-4 0 2 2 0 014 0zm36 4a2 2 0 11-4 0 2 2 0 014 0zm-7 21a2 2 0 11-4 0 2 2 0 014 0zM59 81a2 2 0 11-4 0 2 2 0 014 0zM22 63a2 2 0 11-4 0 2 2 0 014 0zm27 7a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM33 41a9 9 0 11-18 0 9 9 0 0118 0zm-15 0a6 6 0 1012 0 6 6 0 00-12 0zm50 11a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM44.08 4.24c.31.48.33 1.09.05 1.58a17.46 17.46 0 00-2.36 8.8c0 9.55 7.58 17.24 16.85 17.24 2.97 0 5.75-.78 8.16-2.15a1.5 1.5 0 012.1.66 12.08 12.08 0 0011 6.74 12.4 12.4 0 007.85-2.75 1.5 1.5 0 012.38.74A45.76 45.76 0 0192 48.16c0 24.77-19.67 44.9-44 44.9S4 72.93 4 48.16C4 25.23 20.84 6.28 42.64 3.58a1.5 1.5 0 011.44.66zM40.22 7C21.32 10.71 7 27.7 7 48.16c0 23.17 18.39 41.9 41 41.9s41-18.73 41-41.9c0-3.52-.42-6.93-1.22-10.2a15.5 15.5 0 01-7.9 2.15c-5.5 0-10.36-2.83-12.97-7.1a19.46 19.46 0 01-8.28 1.85c-11 0-19.86-9.1-19.86-20.24 0-2.7.52-5.26 1.45-7.62zM92 91a2 2 0 100-4 2 2 0 000 4zM7 8.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM82.5 90a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm9.5-7.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13.5 8a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM80 14.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM53.5 20a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"/>+ </svg>+ <p class="fs-body2 fw-bold mb4">+ Your privacy+ </p>+ <p class="mb16 s-anchors s-anchors__inherit s-anchors__underlined">+ By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our <a href="https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a>.+ </p>+ <div class="d-flex gs8 ai-stretch fd-column sm:fd-row">+ <button class="flex--item s-btn s-btn__primary js-accept-cookies js-consent-banner-hide">+ Accept all cookies+ </button>++ <button class="flex--item s-btn s-btn__filled js-cookie-settings" data-consent-popup-loader="banner">+ Customize settings+ </button>+ </div>+ </div>+ <div id="onetrust-consent-sdk" class="d-none"></div>+ <div id="onetrust-banner-sdk" data-controller="s-modal"></div>+ <div id="ot-pc-content" class="d-none"></div>+ <div id="onetrust-style" class="d-none"> </div>+ <div class="d-none js-consent-banner-version" data-consent-banner-version="baseline"></div>+++ </body>+ </html>