doofus has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance.my $sp = ".A(~(B & C & ( D | (E & F) ))),"; ## $pin = string between . and ( if ( $sp =~ /\.(.*?)\(/ ) { $pin = $1; } if ( $sp =~ /\((.*?)\)/ ) { $sig = $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing Strings (Verilog)
by toolic (Bishop) on Mar 12, 2016 at 02:50 UTC | |
|
Re: Parsing Strings
by Athanasius (Archbishop) on Mar 12, 2016 at 02:58 UTC | |
|
Re: Parsing Strings
by AnomalousMonk (Archbishop) on Mar 12, 2016 at 03:11 UTC | |
|
Re: Parsing Strings
by ww (Archbishop) on Mar 12, 2016 at 02:59 UTC | |
by doofus (Acolyte) on Mar 14, 2016 at 18:59 UTC | |
by ww (Archbishop) on Mar 14, 2016 at 21:01 UTC | |
by doofus (Acolyte) on Mar 14, 2016 at 22:57 UTC | |
by ww (Archbishop) on Mar 15, 2016 at 04:11 UTC |