From: Rilindo Foster Date: 2009-06-05T07:09:43+09:00 Subject: Re: Regular expressions: Find part of a string In addition to other comments, you can go here and test your regular expressions: http://rubular.com/ On Jun 4, 2009, at 4:05 PM, Jermaine wrote: > Hello Everyone, > > I'm quite new to regular expressions, and I'm looking for a way to > find the first 3 letters in a string. > > So let's say I have the following string: "foobar", I want to know > what the first three letters of this string is (in this case it's > foo). > > What is the regex to make this happen? > > Thanks in advance. >