Assuming the pattern matched, $1 will be true if there was a description line. $2 will contain the description. As an optimization, you can get a faster pattern match by not putting your spaces into character classes. That just slows the engine down.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: regex problem
by diotalevi
in thread regex problem
by Otogi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |