Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28342 > unrolled thread
| Started by | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| First post | 2012-09-03 09:33 +0100 |
| Last post | 2012-09-03 09:33 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: get the matched regular expression position in string. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-03 09:33 +0100
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2012-09-03 09:33 +0100 |
| Subject | Re: get the matched regular expression position in string. |
| Message-ID | <mailman.132.1346661196.27098.python-list@python.org> |
On 03/09/2012 09:18, contro opinion wrote: > Here is a string : > > str1="ha,hihi,aaaaa,ok" > > I want to get the position of "," in the str1,Which can count 3,8,14. > > how can I get it in python ? > Write some code using an appropriate string method. If it doesn't work put the minimum piece of code here that demonstrates the problem, what you expect to happen, what actually happened, and if appropriate the complete traceback. -- Cheers. Mark Lawrence.
Back to top | Article view | comp.lang.python
csiph-web