イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 文書処理と正規表現 > split/2/3

split/2/3

MINERVA
ifcomputer logo
f
Expert Services on the Web

文字列のトークンを返す

split(+string, -tokens)

split(+regexp, +string, -tokens)

split/2 "tokens"は、空白で区切られた"string"(文字列の)部分文字列を返す

split/3 "tokens"は、"regexp"で区切られた"string"(文字列の)部分文字列を返す

引数

	regexp              アトム
	string              アトム
	tokens              リスト

例題

	split('one two three', L)		=>  	L = [one,two,three]
	split('%s*:%s*', 'one   :  two  :three', L)
			=>  L  = [one,two,three]

標準

この述語は、ISO-Prolog標準の要件ではありません。

以下も参照して下さい

正規表現, match/2/3, match_all/3, substitute/4, substitute_all/4, split/2/3, chop/2, get_line/1/2,

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/regexp/split/print_jp.html
published 2008/12/1 update 1999/4/26 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
戻る> managed with ubiCMS