# feedwordpress/2009.0612/feedwordpresshtml.class.php

FeedWordPress, version 2009.0612. 36 lines.

- Page: https://pluginprobe.com/plugins/feedwordpress/2009.0612/code/feedwordpresshtml.class.php
- Raw: https://pluginprobe.com/plugins/feedwordpress/2009.0612/raw/feedwordpresshtml.class.php
- Modified: 2009-06-12T18:27:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/feedwordpress/2009.0612/code/feedwordpresshtml.class.php#L10-L20`.

```php
<?php 
class FeedWordPressHTML {
	function attributeRegex ($tag, $attr) {
		return ":(
		(<($tag)\s+[^>]*)
		($attr)=
		)
		(
			\s*(\"|')
			(((?!\\6).)*)
			\\6([^>]*>)
		|
			\s*(((?!/>)[^\s>])*)
			([^>]*>)
		)
		:ix";
	} /* function FeedWordPressHTML::attributeRegex () */

	function attributeMatch ($matches) {
		$suffix = (isset($matches[12]) ? $matches[12] : $matches[9]);
		$value = (isset($matches[10]) ? $matches[10] : $matches[7]);

		return array(
		"tag" => $matches[3],
		"attribute" => $matches[4],
		"value" => $value,
		"quote" => $matches[6],
		"prefix" => $matches[1].$matches[6],
		"suffix" => $matches[6].$suffix,
		"before_attribute" => $matches[2],
		"after_attribute" => $suffix,
		);
	} /* function FeedWordPressHTML::attributeMatch () */
} /* class FeedWordPressHTML */


```
