From: Srinivas reddy Guda Date: 2008-10-13T15:30:13+09:00 Subject: Finding pattern in strings Hello Friends, How to find the pattern in strings. Example: In string "MATHEMATICS", i want to know the first occurrence of "MAT". Is there any standard function is available or we have to write our own code for this? I am looking like function in oracle INSTR. Thanks in Advance, Srinivas. -- Posted via http://www.ruby-forum.com/.