agynr has asked for the wisdom of the Perl Monks concerning the following question:
And after the pattern is occuring so many times in the document in which I had to search then I had to increase the size of the search .After increasing the size of the pattern it becomesSuppose in the beginning we have $pattern="(\s*TOTAL\s*FUND\s*OPERATING\s*)(\S.{0,21}?\S)(\s*\s*EXPENSE +S\s*F\s*)"
My problem is to make the pattern and pick word by word from the left of the pattern and word from the right of the pattern.These things will be applied to only the target document. Can u plz help me in this context.$pattern="(ther\s*Expenses\s*0\s*2600\s*\s*TOTAL\s*FUND\s*OPERATING\s* +)(\S.{0,21}?\S)(\s*\s*EXPENSES\s*Fund\s*as\s*a\s*shareholder\s*in\s*u +nderlying\s*fund\s*indirectly\s*bears\s*pro\s*rata\s*)"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grabbing the words
by manav (Scribe) on Mar 22, 2005 at 11:01 UTC | |
by agynr (Acolyte) on Mar 22, 2005 at 12:18 UTC | |
by jhourcle (Prior) on Mar 22, 2005 at 12:39 UTC |