[ad_1]
I am extracting a piece of string from a string (link): https://arteptweb-vh.akamaihd.net/i/am/ptweb/100000/100000/100095-000-A_0_VO-STE%5BANG%5D_AMM-PTWEB_XQ.1V7rLEYkPH.smil/master.m3u8 and the desired output should be 100000/100000/100095-000-A_. I am using the Regex ^.?(/i,na,fm,d(/am/ptweb/|.+=.+,))([^_]).*?$ in Golang flavor and I can get only the group 4 with the folowing output 100000/100000/100095-000-A
however I want the underscore after A. Bit stuck on this, any help on this is appreciated.
[ad_2]