15 lines
		
	
	
		
			697 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			697 B
		
	
	
	
		
			Factor
		
	
	
! Copyright (C) 2008 Doug Coleman.
 | 
						|
! See http://factorcode.org/license.txt for BSD license.
 | 
						|
USING: kernel strings help.markup help.syntax regexp2.backend ;
 | 
						|
IN: regexp2
 | 
						|
 | 
						|
HELP: <regexp>
 | 
						|
{ $values { "string" string } { "regexp" regexp } }
 | 
						|
{ $description "Compiles a regular expression into a DFA and returns this object.  Regular expressions only have to be compiled once and can then be used multiple times to match input strings." } ;
 | 
						|
 | 
						|
HELP: <iregexp>
 | 
						|
{ $values { "string" string } { "regexp" regexp } }
 | 
						|
{ $description "Compiles a case-insensitive regular expression into a DFA and returns this object.  Otherwise, exactly the same as " { $link <regexp> } } ;
 | 
						|
 | 
						|
{ <regexp> <iregexp> } related-words
 |