Tests if the regular expression "regexp" accepts "string". ...
Move to
=> <=
Darueber Spitze
See also
match/2/3
match_all/3
substitute/4
substitute_all/4
chop/2
split/2/3
get_line/1/2
IF Computer > MINERVA > Manual > Reference > Predicates > Text Processing and Regular Expressions > match/2/3

match/2/3

Tests if the regular expression "regexp" accepts "string".

match(+regexp, +string)

match(+regexp, +string, -matchlist)

match/2 Tests if the regular expression "regexp" accepts "string".

match/3 Tests if the regular expression "regexp" accepts "string". Substrings in bracketed expressions are returned in sequence in "matchlist".

Arguments

	regexp		atom
	string		atom
	matchlist	list

Examples

	match('(%d+)', 'one123four', L)		=>	L = ['123']
	match('(.*)a', barbara, L)		=>  	L = [barbar]
	match('(.*?)a', barbara, L)		=>  	L = [b]

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

regular expression, match/2/3, match_all/3, substitute/4, substitute_all/4, split/2/3, chop/2, get_line/1/2,

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/regexp/match/home_de.html
published 2008/7/21 update 1999/5/10 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS