constant XBBCODE_RE_ATTR in Extensible BBCode 8.2
Same name and namespace in other branches
- 8 xbbcode.module \XBBCODE_RE_ATTR
- 7 xbbcode.module \XBBCODE_RE_ATTR
Regular expression pattern for parsing a key=value assignment.
2 uses of XBBCODE_RE_ATTR
- xbbcode.module in ./
xbbcode.module - The main module file containing hook implementations.
- XBBCodeTagMatch::parseAttrs in src/
XBBCodeTagMatch.php - Parse a string of attribute assignments.
File
- ./
xbbcode.module, line 21 - The main module file containing hook implementations.
Code
define('XBBCODE_RE_ATTR', '(?:\\s+(?<key>\\w+)=(?<aq>' . XBBCODE_RE_QUOTE . ')(?<value>[^"]*?)\\g{aq}(?=\\s|\\]|$))');