To Dave Cuny re PATTERN.E

new topic     » topic index » view thread      » older message » newer message

Dear Dave,

Regarding test 1, how do i get just the filename.ext from the include line?
Regarding test 2, why do I get "pattern.e -- and the rest" when I've specified
the caret in the pattern to force start_of_string match?

<CODE>
include pattern.e

procedure patt_test( sequence thePattern, sequence theData )
    integer i
    i = pattern( thePattern, theData )
end procedure

--test 1
patt_test( "^include/s+(.*)", "include pattern.e -- and the rest" )
puts( 1, arg[ 1 ] & '\n' )

--test 2
patt_test( "^include/s+(.*)", "-- include pattern.e -- and the rest" )
puts( 1, arg[ 1 ] & '\n' )

</CODE>

Zaph.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu