regcmp man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     REGCMP(CP)		      XENIX System V		    REGCMP(CP)

     Name
	  regcmp - Compiles regular expressions.

     Syntax
	  regcmp [-] files

     Description
	  regcmp, in most cases, precludes the need for calling regcmp
	  (see regex(S)) from C programs.  This saves on both
	  execution time and program size.  The command regcmp
	  compiles the regular expressions in file and places the
	  output in file.i. If the - option is used, the output will
	  be placed in file.c. The format of entries in file is a name
	  (C variable) followed by one or more blanks followed by a
	  regular expression enclosed in double quotation marks.  The
	  output of regcmp is C source code.  Compiled regular
	  expressions are represented as extern char vectors.  File.i
	  files may thus be included into C programs, or file.c files
	  may be compiled and later loaded.  In the C program which
	  uses the regcmp output, regex(abc,line) applies the regular
	  expression named abc to line.	 Diagnostics are self-
	  explanatory.

     Examples
	  name	   "([A-Za-z][A-Za-z0-9_]*)$0"

	  telno	   "\({0,1}([2-9][01][1-9])$0\){0,1} *"
		   "([2-9][0-9]{2})$1[ -]{0,1}"
		   "([0-9]{4})$2"

	  In the C program that uses the regcmp output,

	       regex(telno, line, area, exch, rest)

	  will apply the regular expression named telno to line.

     See Also
	  regex(S)

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net