can someone explain what is happening in the following lines.
JLog::addLogger(array('text_file' => 'log.php'), JLog::INFO);
JLog::add('Test', JLog::INFO, '((?:test<[a-zA-Z][^>]*>\s*){0,7})');
//logger output :: testa-za-zs07
- What is happening in the piece
((?:test<[a-zA-Z][^>]*>\s*){0,7})? - Why joomla logger is not giving / logging the exact string as is
((?:test<[a-zA-Z][^>]*>\s*){0,7})? - Can some one explain each piece of
((?:test<[a-zA-Z][^>]*>\s*){0,7})?
((?:test<[a-zA-Z][^>]*>\s*){0,7})is a regular expression. Here is an explanation of what this expression means: http://regex101.com/r/dZ8sA1If it still is not clear after you’ve read that link, just ask and I’ll try to explain further.