diff options
Diffstat (limited to 'src/NXP/Classes/Token')
-rw-r--r-- | src/NXP/Classes/Token/TokenVariable.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/NXP/Classes/Token/TokenVariable.php b/src/NXP/Classes/Token/TokenVariable.php new file mode 100644 index 0000000..ccd7c83 --- /dev/null +++ b/src/NXP/Classes/Token/TokenVariable.php @@ -0,0 +1,25 @@ +<?php +/** + * This file is part of the MathExecutor package + * + * (c) Alexander Kiryukhin + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code + */ + +namespace NXP\Classes\Token; + +/** + * @author Alexander Kiryukhin <alexander@symdev.org> + */ +class TokenVariable extends AbstractContainerToken +{ + /** + * @return string + */ + public static function getRegex() + { + return '\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'; + } +} |