eversuhoshin has asked for the wisdom of the Perl Monks concerning the following question:
Hello, can someone help me write a code that shows what words the regex actually matches? Below is the code
$fcount=()=$data=~m/outlook\s+for\s+any\s+rating|(?:rating|if\s+on\s+ +negative|Microsoft|suggesting\s+an|may\s+contain\s+statements\s+about +\s+future\s+events\,|business\s+conditions\s+and\s+the)\s+outlook|gui +dance\s+(?:to\s+approve|facility) |(?:authoritative|revenue\s+recognition|invaluable\s ++practical|valuable|regulatory|technical|under\s+the|staff\'s|judicia +l|SEC|FDA|Treasury(?:\s+Department)?|specific|implementation|their|go +vernment|any\s+ruling|college|absent|\s+his|interim|intrepretive|tran +sition|administrative|procedural|related|applicable|accounting|defini +tive|superceding|IRS|Internal\s+Revenue\s+Service|valued|EITF\s+accou +nting)\s+guidance |guidance\s+(?:and\s+rules|promulgated(?:\s+thereund +er)?|in\s+SFAS)|(?:provided|issued)\s+by\s+(?:the\s+)?(?:SEC|Securiti +es\s+and\s+Exchange\s+Commission|Internal\s+Revenue\s+Service|Secreta +ry|United\s+States|Financial\s+Accounting) |(?:other|applicable)\s+guidance\s+issued|according\ +s+to\s+the\s+guidance\s+contained|provide\s+guidance\s+to\s+directors +|receiving\s+guidance |(?:current|other)\s+guidance\s+(?:under|from)|assum +es\s+guidance\s+of\s+(?:the|a)\s+(?:company|board|talented\s+team|com +pensation)|guidance\s+(?:system|software|technology) /xig;
I just want to make sure that I am not matching some weird stuff due to some regex mistake. Thank you so much!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quick Question about checking what the regex does
by CountZero (Bishop) on Aug 20, 2012 at 09:35 UTC | |
|
Re: Quick Question about checking what the regex does
by Anonymous Monk on Aug 20, 2012 at 08:36 UTC | |
by davido (Cardinal) on Aug 20, 2012 at 09:23 UTC | |
|
Re: Quick Question about checking what the regex does
by Ratazong (Monsignor) on Aug 20, 2012 at 07:48 UTC | |
|
Re: Quick Question about checking what the regex does
by Kenosis (Priest) on Aug 20, 2012 at 17:02 UTC | |
|
Re: Quick Question about checking what the regex does
by Anonymous Monk on Aug 20, 2012 at 15:15 UTC | |
|
Re: Quick Question about checking what the regex does
by kcott (Archbishop) on Aug 20, 2012 at 21:52 UTC |