Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

StringRegExpReplace to correct HTML tag

$
0
0

Hi all

I get a problem with StringRegExpReplace 

Here is the code:

$string = "< / li  >  < /  li  >  < /li > < / li> < / li  > </ li  >" $array = StringRegExp($string, "<(.*)/(.*)(li)(.*)>", 3) _ArrayDisplay($array)

I want to replace all with </li>, and the final result is:

</li>  </li>  </li> </li> </li> </li>

Please help, thanks


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>