On Sep 9, 4:58 pm, Al Fansome wrote:
> Mart. wrote:
> > On Sep 8, 4:33 pm, MRAB wrote:
> >>Mart. wrote:
> >>> On Sep 8, 3:53 pm, MRAB wrote:
> Mart. wrote:
> > On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
> > Hi,
> > I need to extract a string after a matching a regular expr
Mart. wrote:
On Sep 8, 4:33 pm, MRAB wrote:
Mart. wrote:
On Sep 8, 3:53 pm, MRAB wrote:
Mart. wrote:
On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and onc
Mart. wrote:
On Sep 8, 4:33 pm, MRAB wrote:
Mart. wrote:
On Sep 8, 3:53 pm, MRAB wrote:
Mart. wrote:
On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and onc
On Sep 8, 4:33 pm, MRAB wrote:
> Mart. wrote:
> > On Sep 8, 3:53 pm, MRAB wrote:
> >> Mart. wrote:
> >>> On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
> >>> Hi,
> >>> I need to extract a string after a matching a regular expression. For
> >>> example I have the string...
> >>> s = "FT
Mart. wrote:
If, as Terry suggested, you do have a tuple of strings and the first element has FTPHOST,
then s[0].split(":")[1].strip() will work.
It is an email which contains information before and after the main
section I am interested in, namely...
FINISHED: 09/07/2009 08:42:31
MEDIATYPE
On Sep 8, 4:33 pm, MRAB wrote:
> Mart. wrote:
> > On Sep 8, 3:53 pm, MRAB wrote:
> >> Mart. wrote:
> >>> On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
> >>> Hi,
> >>> I need to extract a string after a matching a regular expression. For
> >>> example I have the string...
> >>> s = "FT
On Sep 8, 12:16 pm, nn wrote:
> On Sep 8, 11:19 am, Dave Angel wrote:
>
>
>
> > Mart. wrote:
> > >
> > > I have been doing this to turn the email into a string
>
> > > email =ys.argv[1]
> > > f =open(email, 'r')
> > > s =str(f.readlines())
>
> > > so FTPHOST isn't the first element, it is just p
On Sep 8, 11:19 am, Dave Angel wrote:
> Mart. wrote:
> >
> > I have been doing this to turn the email into a string
>
> > email =ys.argv[1]
> > f =open(email, 'r')
> > s =str(f.readlines())
>
> > so FTPHOST isn't the first element, it is just part of a larger
> > string. When I turn the email int
On Sep 8, 10:25 am, "Mart." wrote:
> On Sep 8, 3:21 pm, nn wrote:
>
>
>
> > On Sep 8, 9:55 am, "Mart." wrote:
>
> > > On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
>
> > > > > Hi,
>
> > > > > I need to extract a string after a matching a regular expression. For
> > > > > example I have the string...
On Sep 8, 10:27 am, pdpi wrote:
> On Sep 8, 3:21 pm, nn wrote:
>
>
>
> > On Sep 8, 9:55 am, "Mart." wrote:
>
> > > On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
>
> > > > > Hi,
>
> > > > > I need to extract a string after a matching a regular expression. For
> > > > > example I have the string...
>
Mart. wrote:
On Sep 8, 3:53 pm, MRAB wrote:
Mart. wrote:
On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I would like to extract
"e4
Mart. wrote:
I have been doing this to turn the email into a string
email =ys.argv[1]
f =open(email, 'r')
s =str(f.readlines())
so FTPHOST isn't the first element, it is just part of a larger
string. When I turn the email into a string it looks like...
'FINISHED: 09/07/2009 08:42:31\r\n', '\r
On Sep 8, 3:53 pm, MRAB wrote:
> Mart. wrote:
> > On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
> > Hi,
> > I need to extract a string after a matching a regular expression. For
> > example I have the string...
> > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
> > and once I match "FTPHOST"
Mart. wrote:
On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I would like to extract
"e4ftl01u.ecs.nasa.gov". I am not sure as to the b
On Sep 8, 3:21 pm, nn wrote:
> On Sep 8, 9:55 am, "Mart." wrote:
>
>
>
>
>
> > On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
>
> > > > Hi,
>
> > > > I need to extract a string after a matching a regular expression. For
> > > > example I have the string...
>
> > > > s = "FTPHOST: e4ftl01u.ecs.nasa.gov
On Sep 8, 3:21 pm, nn wrote:
> On Sep 8, 9:55 am, "Mart." wrote:
>
>
>
> > On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
>
> > > > Hi,
>
> > > > I need to extract a string after a matching a regular expression. For
> > > > example I have the string...
>
> > > > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
On Sep 8, 3:14 pm, "Andreas Tawn" wrote:
> > > > Hi,
>
> > > > I need to extract a string after a matching a regular expression. For
> > > > example I have the string...
>
> > > > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> > > > and once I match "FTPHOST" I would like to extract
> > > > "e4ftl01u.ec
On Sep 8, 9:55 am, "Mart." wrote:
> On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
>
>
>
> > > Hi,
>
> > > I need to extract a string after a matching a regular expression. For
> > > example I have the string...
>
> > > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> > > and once I match "FTPHOST" I would lik
> > > Hi,
> >
> > > I need to extract a string after a matching a regular expression. For
> > > example I have the string...
> >
> > > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
> >
> > > and once I match "FTPHOST" I would like to extract
> > > "e4ftl01u.ecs.nasa.gov". I am not sure as to the best approa
On Sep 8, 2:16 pm, "Andreas Tawn" wrote:
> > Hi,
>
> > I need to extract a string after a matching a regular expression. For
> > example I have the string...
>
> > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> > and once I match "FTPHOST" I would like to extract
> > "e4ftl01u.ecs.nasa.gov". I am not su
> Hi,
>
> I need to extract a string after a matching a regular expression. For
> example I have the string...
>
> s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> and once I match "FTPHOST" I would like to extract
> "e4ftl01u.ecs.nasa.gov". I am not sure as to the best approach to the
> problem, I had
Mart. wrote:
On Sep 8, 2:15 pm, MRAB wrote:
Martin wrote:
Hi,
I need to extract a string after a matching a regular expression.
Whether or not you need re is an issue to be determined.
>>> For example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I wo
On Sep 8, 2:21 pm, "Mark Tolonen" wrote:
> "Martin" wrote in message
>
> news:5941d8f1-27c0-47d9-8221-d21f07200...@j39g2000yqh.googlegroups.com...
>
>
>
> > Hi,
>
> > I need to extract a string after a matching a regular expression. For
> > example I have the string...
>
> > s = "FTPHOST: e4ftl01
On Sep 8, 2:15 pm, MRAB wrote:
> Martin wrote:
> > Hi,
>
> > I need to extract a string after a matching a regular expression. For
> > example I have the string...
>
> > s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> > and once I match "FTPHOST" I would like to extract
> > "e4ftl01u.ecs.nasa.gov". I am
"Martin" wrote in message
news:5941d8f1-27c0-47d9-8221-d21f07200...@j39g2000yqh.googlegroups.com...
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I would like to extract
On Sep 8, 1:56 pm, Martin wrote:
> Hi,
>
> I need to extract a string after a matching a regular expression. For
> example I have the string...
>
> s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
>
> and once I match "FTPHOST" I would like to extract
> "e4ftl01u.ecs.nasa.gov". I am not sure as to the best ap
Martin wrote:
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I would like to extract
"e4ftl01u.ecs.nasa.gov". I am not sure as to the best approach to the
problem, I had been
Hi,
I need to extract a string after a matching a regular expression. For
example I have the string...
s = "FTPHOST: e4ftl01u.ecs.nasa.gov"
and once I match "FTPHOST" I would like to extract
"e4ftl01u.ecs.nasa.gov". I am not sure as to the best approach to the
problem, I had been trying to match
28 matches
Mail list logo