On Oct 4, 7:28 am, Dan <[EMAIL PROTECTED]> wrote:
> So, paren matching is a canonical context-sensitive algorithm. Now,
> many regex libraries have *some* not-purely-regular features, but I
> doubt your going to find anything to match parens in a single regex.
> If you want to go all out you can us
On Oct 4, 7:50 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> Use a parsing lib. I've tinkered a bit with PyParsing[1] which
> is fairly easy to pick up, but powerful enough that you're not
> banging your head against limitations. There are a number of
> other parsing libraries[2] with various domain
> i've spent couple of hours trying to figure out the correct regular
> expression to catch a VisualLisp
[snipped]
> "(defun foo", but it is hard to find the ")" at the end of code block.
> if eventually i can't come up with the solution using regular
> expression only, what i was thinking is afte
On Oct 4, 1:13 pm, Kelie <[EMAIL PROTECTED]> wrote:
> hello,
>
> i've spent couple of hours trying to figure out the correct regular
> expression to catch a VisualLisp (it is for AutoCAD and has a syntax
> that's similar to common lisp) function body. VisualLisp is case-
> insensitive. Any line beg