このメソッドは、ある文字列の別の文字列内の位置を返します。
pos(substr,string1)
/*Main program*/ a = "Hello World" say pos("Hello",a)
上記のプログラムを実行すると、次の結果が得られます。
1