Praveen Dharmaraj has asked for the wisdom of the Perl Monks concerning the following question:
Iam trying to match this line :$reg1 = /\=/i; $reg2 = /\S+\=\S+/i; $reg3 = /extern.+\b$ur\b\s*/i; $reg4 = /;$/i; $reg5 = /.+\b$ur\b\s*/i; The value of $ur is "rba_Reset_Request".
Can somebody help?extern void rba_Reset_Request(rba_Reset_Grp_ten dResetGrp_en, rba_Reset_Id_ten dResetIdentifier_en, uint32 dUserDefined_u32);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using regex with a variable
by Athanasius (Archbishop) on Mar 14, 2016 at 07:48 UTC | |
|
Re: Using regex with a variable
by Discipulus (Canon) on Mar 14, 2016 at 07:52 UTC | |
by Praveen Dharmaraj (Novice) on Mar 14, 2016 at 08:50 UTC | |
by Discipulus (Canon) on Mar 14, 2016 at 09:19 UTC | |
by Praveen Dharmaraj (Novice) on Mar 14, 2016 at 09:31 UTC | |
by GrandFather (Saint) on Mar 14, 2016 at 11:00 UTC | |
by Praveen Dharmaraj (Novice) on Mar 14, 2016 at 09:27 UTC | |
by Discipulus (Canon) on Mar 14, 2016 at 09:43 UTC | |
| |
|
Re: Using regex with a variable
by BillKSmith (Monsignor) on Mar 14, 2016 at 14:37 UTC | |
|
Re: Using regex with a variable
by Marshall (Canon) on Mar 17, 2016 at 02:42 UTC |