[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: succinct awk code to check for paired parantheses?
From: |
david kerns |
Subject: |
Re: succinct awk code to check for paired parantheses? |
Date: |
Wed, 24 Mar 2021 06:42:15 -0700 |
I'd recommend lex over awk for this task...
On Wed, Mar 24, 2021 at 6:32 AM Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> I want to check whether parentheses (only "()") in a string are all
> paired. Here is some awk code. But it looks quite clumsy. Is there a
> better implementation more readable and succinct? Thanks.
>
> https://stackoverflow.com/questions/2667494/awk-brackets-checking
>
> --
> Regards,
> Peng
>
>