Sep-11-2019, 10:58 AM
Hi,
I have a string as below, I want to split after each "html" and extract the first string after split.
I use below code, but I can be able to split after the delimiter.
I have a string as below, I want to split after each "html" and extract the first string after split.
I use below code, but I can be able to split after the delimiter.
a='JKl:TOGGLE:HJAK.html:Tiger:HJA.html' b=a.split('html')[0]My desired output is :JKl:TOGGLE:HJAK.htm