You are here

constant XBBCODE_RE_TAG in Extensible BBCode 7

Same name and namespace in other branches
  1. 8 xbbcode.module \XBBCODE_RE_TAG
  2. 8.2 xbbcode.module \XBBCODE_RE_TAG

Regular expression pattern for parsing a complete tag element.

1 use of XBBCODE_RE_TAG
XBBCodeFilter::process in ./xbbcode.filter.inc
Execute the filter on a particular text.

File

./xbbcode.module, line 26
The main module file containing hook implementations.

Code

define('XBBCODE_RE_TAG', '/\\[(?<closing>\\/)?(?<name>\\w+)(?:=(?<bq>' . XBBCODE_RE_QUOTE . ')(?<option>.*?)\\g{bq}(?=\\s|\\])|(?<attrs>' . XBBCODE_RE_ATTR . '+))?\\]/i');