[Tutor] string.search
Andrei Kulakov
ak@silmarill.org
Wed, 05 Dec 2001 10:07:16 -0500
On Wed, Dec 05, 2001 at 05:51:43AM -0800, john public wrote:
>
> I think string.search() is what I am looking for but without an actual example I can't figure it out. I started programming three weeks ago. I have lived with many programmers in the past and I am realizing I learned some BASIC by osmosis. Once I find the right tool for the job, is there some online documentation that has a real example for everything. I checked Guido's tutorial and the Python reference library but could only find examples in the abstract.
> such as string.search(string,[,pos[,endpos]])
In this case brackets mean that 2nd and 3rd arguments are optional.
Actual usage looks like this:
string.search(my_str, 2, 3)
- Andrei
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org