To Dave Cuny re PATTERN.E
- Posted by Zaphod Beeblebrox <zaphod_beeblebrox at SIL.ORG> Mar 23, 2000
- 474 views
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.