Gossamer Forum
Home : Products : Others : Fileman :

search error

Quote Reply
search error
Hello

this is a strange search action but it should work, but it doesn't

When I search for a character like * and check search content (only search content)

i get the following error:

Quantifier follows nothing before HERE mark in regex m/* << HERE / at GT::FileMan::Commands::cmd_search line 517.

is there a solution to solve this issue?
Quote Reply
Re: [ridesworld] search error In reply to
In that file line 517 try changing the regex so that the beginning reads:

m/\Q

..instead of just:

m/

You'll need to do the same a couple of lines up too.

Last edited by:

Paul: Apr 7, 2003, 7:42 AM
Quote Reply
Re: [Paul] search error In reply to
Hello Paul,

according the message, the error should be here:

push @$results, $self->_file_info($file) if ($buffer =~ m,$search,i);

I can't see the option you give to me in this syntax.
Quote Reply
Re: [ridesworld] search error In reply to
Ok it's

m,

instead of

m/

So just do:

m,\Q
Quote Reply
Re: [Paul] search error In reply to
Hello Paul

I've tried the options you give, but it generates the same error message again.


I've done this in sub cmd_search too and it seems to work ok.

Thank you.