Lua pattern: how to fetch the required string -


i have string mentioned below, data coming me in excel file. rows proper data , these proper data rows able fetch need using lua pattern. below proper data row

2011/02 arrtc aauumco zzitnwmobile communications center arrtc-aauum-tbt-2011-02 0.00 aauum_arrtc_0211_tbt 18.03 18.03 eur 1.14977 20.73 20.73

and using below pattern , working fine.

rpattern = "(%d%d%d%d%/%d%d)%s*(%w%w%w[%w%d][%w%d])%s*(%w%w%w[%w%d][%w%d]).-[%u%d%-%s]-([%d%.%,]+)%s*([%u%d_%-]-)%s*([%d%.%,]+)%s*([%d%.%,]+)%s*(%u%u%u)%s*(%d+%.%d*)%s*(.-)\n"

now rows coming html tags, means data inside html tags. trick need fetch required string within html tags. bugged row

2011/02 arrtc   aauumco zzitnwmobile communications center  arrtc-aauum-tbt-2011-02 0.00    <a href="/cgi-bin/recon_detail?rectent=aauum&benificary=arrtc&period=2011/02&svctype=voice">aauum_arrtc_0211_tbt</a>    18.03   18.03   eur 1.14977 20.73   20.73 

now above row want fetch aauum_arrtc_0211_tbt

i trying trying , trying unable it. can me fix above patternd?

thanks

try print(str:match(">(.-)<")).


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -