Help:CheckExtendedFunctions
From Metabolomics.JP
(Difference between revisions)
| Line 32: | Line 32: | ||
=def= | =def= | ||
| − | |||
{{#def:variable|ThisIsDefFunction}} | {{#def:variable|ThisIsDefFunction}} | ||
=var= | =var= | ||
| − | + | {{#var:variable}} | |
| − | {{# | + | |
=substring= | =substring= | ||
| + | {{#substring:substring|1|5}} | ||
=trim= | =trim= | ||
| + | <nowiki>:</nowiki>{{#trim: a | ||
| + | }}: | ||
| + | |||
| + | <span style="color: red">※「:」と「a」の間のスペース、タブ、改行を消しています。</span> | ||
=length= | =length= | ||
| + | {{#length:0123456789}} | ||
=count= | =count= | ||
| + | {{#count:abcabcabca|a}} | ||
=indexof= | =indexof= | ||
| + | {{#indexOf:Hello world|wor}} | ||
| + | {{#indexOf:Hello world}} | ||
=lastindexof= | =lastindexof= | ||
| + | {{#lastIndexOf:abc abc abc|abc}} | ||
| + | {{#lastIndexOf:abc abc abc}} | ||
=isdigit= | =isdigit= | ||
| + | {{#isdigit:1234567890|This is digit|This is not digit}} | ||
| + | {{#isdigit:123abc456|This is not alphanumeric|This is alphanumeric}} | ||
=isalnum= | =isalnum= | ||
| + | {{#isalnum:123abc456|This is alphanumeric|This is not alphanumeric}} | ||
| + | {{#isalnum:*123abc456*|This is alphanumeric|This is not alphanumeric}} | ||
=replace= | =replace= | ||
| + | {{#replace:abcdefghi|def|123}} | ||
| + | {{#replace:a b c d| |1}} | ||
=cr= | =cr= | ||
| + | a{{#cr:}}{{#cr:}}b | ||
| + | |||
| + | <span style="color: red">※「a」と「b」の間の二つ改行を出力しています。</span> | ||
=bar= | =bar= | ||
| + | {{#bar:}} | ||
=forcedbr= | =forcedbr= | ||
| + | {{#forcedBR:123456789012345678901234567890123456789012345678901234567890|10}} | ||
| + | |||
| + | <span style="color: red">※10桁ごとに<wbr />を挿入しています。</span> | ||
=repeat= | =repeat= | ||
Revision as of 16:20, 21 February 2011
car
A
cdr
B C D E
cadr
B
cddr
C D E
caddr
C
cdddr
D E
and
1,2,3 and 1,3,4 -> 1 4
or
1,2,3 or 1,3,4 -> 1 2 3 4
def
var
ThisIsDefFunction
substring
ubst
trim
:a:
※「:」と「a」の間のスペース、タブ、改行を消しています。
length
10
count
4
indexof
6 5
lastindexof
8 7
isdigit
This is digit This is alphanumeric
isalnum
This is alphanumeric This is not alphanumeric
replace
abc123ghi a1b1c1d
cr
a
b
※「a」と「b」の間の二つ改行を出力しています。
bar
|
forcedbr
1234567890
※10桁ごとに
repeat
repeatnum
ifexistfile
searchline
searchtitle
countline
counttitle
choose
clink
createstring
ifexists
map
max
min
nth
searchlinenot
searchlinereg
trimex
upcase
abcdef -> ABCDEF
a1=B2. -> A1=B2.
downcase
ABCDEF -> abcdef
a1=B2. -> a1=b2.