Pattern Matching Given # of Characters and no String Input; use RegularExpressions?
John Machin
sjmachin at lexicon.net
Sun Apr 17 21:51:10 EDT 2005
On 17 Apr 2005 18:12:19 -0700, sm.synonymous at gmail.com (Synonymous)
wrote:
>
>I will look for a Left$(str) function that looks at the first X
>characters for python :)).
>
Wild goose chase alert! AFAIK there isn't one. Python uses slice
notation instead of left/mid/right/substr/whatever functions. I do
suggest that instead of looking for such a beastie, you read this
section of the Python Tutorial: 3.1.2 Strings.
Then, if you think that that was a good use of your time, you might
like to read the *whole* tutorial :))
HTH,
John
More information about the Python-list
mailing list