I am searching text files for the keyword Exhibit or Form followed by a number, a decimal, and any number of letter or numbers within parentheses or not.

For example:

Exhibit 12
Exhibit 12.1
Exhibit 12(a)
Exhibit 12.1(a)
Exhibit 12.1(2)
Exhibit 12.1(a)(b)
Exhibit 12.1(1)(2)
Exhibit 12 (a)
Exhibit 12.1 (a)
Exhibit 12.1 (2)
Exhibit 12.1 (a) (b)
Exhibit 12.1 (1) (2)

There can be more than one space between "Exhibit" and the number, and space between the number and parentheses, and between parentheses.

Examples of what I would NOT want:

"Exhibit 3.11(1) - Articles of Incorporation of The Lehigh Press, Inc."

or with tabs:

"  Exhibit 3.11(1) - Articles of Incorporation of The Lehigh Press, Inc."

But I would want:

"Exhibit 3.11(1)                                                       "

or

"                                                       Exhibit 3.11(1)"

"  Exhibit 3.11(1)"


I use this:

if( ($textarea_line =~ m/^\s*(Exhibit\s+[\d.]+)(\s*\([^\s]*)?.*$/i) && ($textarea_line !~ m/[\w+]$/i) )

to screen out lines where "Exhibit" occurs (along with patterns of dots, letter, numbers, parentheses, and spaces), but other words follow it.

The problem is, this works inconsistently.

These are two lines that should not be found:

"Exhibit 4.4(1) - Registration Rights Agreement, dated October 22, 2003 among Von"

"Exhibit 3.11(1) - Articles of Incorporation of The Lehigh Press, Inc."

The first line is screened out. That's fine.

The second line, however, gets through. The search extracts the "Exhibit 3.11(1)" part.

Any clues as to why?

                

-- Craig
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to