Lines Matching refs:regexp
79 {"regexp", required_argument, NULL, 'e'},
86 {"word-regexp", no_argument, NULL, 'w'},
112 -e, --regexp=PATTERN use PATTERN as a regular expression\n\
115 -w, --word-regexp force PATTERN to match only whole words\n\
474 char *regexp = NULL;
518 /* Set record delimiter regexp. */
525 regexp = optarg;
661 if (regexp == NULL)
665 regexp = argv[optind++];
668 /* If -k is specified, make the regexp literal. This uses
671 pain, but can't really be avoided if we want to create a regexp
675 char *next_pos = regexp;
680 next_pos = regexp;
691 len = strlen(regexp);
699 next_pos = regexp;
722 regexp = new_re;
726 assertions to the regexp before compiling. */
729 char *tmp = regexp;
731 regexp = malloc(len + 7);
732 if (regexp == NULL)
737 strcpy(regexp, "\\<(");
738 strcpy(regexp + 3, tmp);
739 strcpy(regexp + len + 3, ")\\>");
743 errcode = tre_regcomp(&preg, regexp, comp_flags);