Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
List::Regexp(3)	      User Contributed Perl Documentation      List::Regexp(3)

NAME
       regexp_opt - Convert list of strings to a regular expression

SYNOPSIS
       use List::Regexp	qw(:all);

       my $s = regexp_opt(@strings);

       my $s = regexp_opt(\%opts, @strings);

DESCRIPTION
       Returns a regular expression that will match any	string from the	input
       list @strings.  First argument can be a reference to a hash, which
       controls	how the	regexp is built.

       Valid keys are:

       type => pcre|posix|emacs
	   Controls the	flavor of the generated	expression: Perl-compatible
	   (the	default), POSIX	extended, or Emacs.

       match =>	default|exact|word
	   If default, the expression will match any word from @strings
	   appearing as	a part of another word.

	   If exact, the expression will match a word from @strings appearing
	   on a	line alone.

	   If word, the	expression will	match single words only.

       debug =>	0|1
	   If 1, enable	debugging output.

       group =>	0|1
	   If 1, enclose entire	regexp in a group.

LICENSE
       GPLv3+: GNU GPL version 3 or later, see
       <http://gnu.org/licenses/gpl.html>

       This  is	 free  software:  you  are free	to change and redistribute it.
       There is	NO WARRANTY, to	the extent permitted by	law.

AUTHORS
       Sergey Poznyakoff <gray@gnu.org>

perl v5.24.1			  2016-10-03		       List::Regexp(3)

NAME | SYNOPSIS | DESCRIPTION | LICENSE | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=List::Regexp&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help