Im sorry for bein a complete numpty but none of the code Im writing is
working. basically Im trying to get the last update from twitter without
the gumf in it.

the code I write looks suthin like

curl http://twitter.com/statuses/friends_timeline/9407322.rss | grep
--regexp="<description[^>]*>(.*)</description>"

but I get no result
If I grep it as usual then thecode I get is fine and uncludes all the
details I need to extracct.

lol.. should I just use php to pull out the stuff I dont want from the
strings.

thank in advance. sorry for bein a twit. im new at this.

Shad.

On Wed, 2007-10-24 at 11:51 +0000, toolskyn wrote:
> It won't correctly match:
> <tag><tag></tag></tag>
> 
> Because of the lazy part, the first <tag> would match the first </
> tag>, wich is incorrect. I think it should be greedy, so: 
> <TAG[^>]*>(.*)</TAG>
> should work better.
> 
> Brian Cummiskey wrote:
> >
> > http://www.regular-expressions.info/regexbuddy/htmltagpair.html
> > 
> > should do the trick
> > 
> > 
> > 
> > Shadrik Easton wrote:
> > >
> > > Sorry about the off topic post but Im running out of options.
> > >
> > > quick question then: I need to use a regular expression to 
> extract some
> > > text from between to tags. these tags being < description > and
> > > < /description >
> > >
> > > for eg < description >This is some random text < /desription >
> > >
> > > I would need the 'This is some random text' part returned.. any 
> ideas?
> > > thanks people and once again. sorry for the OT.
> > >
> > > Shad.
> > >
> > >
> >
> 
> 
> 
> 
>  


Reply via email to