Re: wildcard_match; Return position
- Posted by ZNorQ <znorq at ?olh?ug.com> Mar 12, 2008
- 617 views
CChris wrote: > > ZNorQ wrote: > > > > Hey, > > > > Do anyone know of a wildcard_match version that returns the position id for > > the first occurance of the search? > > > > The one that is included in the standard euphoria archives do only return > > true > > or false, or rather one and zero. > > > > Regards, > > Kenneth 'ZNorQ' Nilsson > > You can try EuRegExp in the archive, it will give you this sort of info and > more. It's an Euphoria-oriented regular expression library, mostly compatible > with Perl's conventions. > > CChris Hmm. As soon as I include it, I first get an error saying that EuRegExp.e has an error at line 443 - w has not been declared. So I added w to the sequence a few lines above, and tried again - but this time I got a new error; EuRegExp.e @ line 913; search_again takes 4 arguments else option-=8 z=search_again(s0,s1,options) ^ Is it me, or what? (Keep in mind, I haven't gotten around to use any of the code yet - it's just included!) Kenneth / ZNorQ