Aug 23
Rick Draper Extracting multiple elements from strings
Aug 23, 2014; 12:59
Rick Draper
Extracting multiple elements from strings
Hi All,
I am looking to identify the simplest way to extract various elements from a
tweet, e.g. All the hashtags into an array, all the links in the tweet into
an array, and some "watched terms".
For example from a Tweet that was "@QR2id is testing @AmtacHQ #newtest
@ismcpi #success https://t.co/DnhFPnGZ0i http://t.co/xFRurBzl6w" ...
.... I would want to generate the following:
Links array('https://t.co/DnhFPnGZ0i', 'http://t.co/xFRurBzl6w')
Hashtag array('#newtest', '#success')
Username array('@QR2id', '@AmtacHQ','@ismcpi')
Watched term array('test') // extracted from "testing" where the watched
term list may have included array('Test','Cricket','Foo','Bah').
I have started playing with regular expressions but it is getting a little
complex for my skill level and I think there may be a more elegant /
efficient way.
Any pointers would be sincerely appreciated.
Thanks and very best regards,
Rick
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 22
Steve Piercy - Website Builder Re: Extracting multiple elements from strings
Aug 22, 2014; 20:55
Steve Piercy - Website Builder
Re: Extracting multiple elements from strings
Aug 23
Rick Draper RE: Extracting multiple elements from strings
Aug 23, 2014; 14:08
Rick Draper
RE: Extracting multiple elements from strings
Aug 23
Jolle Carlestam Re: Extracting multiple elements from strings
Aug 23, 2014; 12:06
Jolle Carlestam
Re: Extracting multiple elements from strings
Aug 24
Jolle Carlestam Re: Extracting multiple elements from strings
Aug 24, 2014; 09:11
Jolle Carlestam
Re: Extracting multiple elements from strings
Aug 24
deco rior Re: Extracting multiple elements from strings
Aug 24, 2014; 07:34
deco rior
Re: Extracting multiple elements from strings
Aug 24
Marc Vos Re: Extracting multiple elements from strings
Aug 24, 2014; 16:46
Marc Vos
Re: Extracting multiple elements from strings
Aug 25
Rick Draper Re: Extracting multiple elements from strings
Aug 25, 2014; 09:08
Rick Draper
Re: Extracting multiple elements from strings