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

Small StringRegExp Problem

$
0
0
Going on from some previous work in another thread i started trying to write a regex

Its obviously not working so ive come back to throw myself on your charity again.

I have a number of archive files like this

Quote

Video2Brain.Power-Workshops.Lab-Korrektur.in.Photoshop.7z.001
and i wanted to amend the filename to this

Quote

m6Dg9L_1V_6Hb5`A6n[2eW0Of6^O3Dd3D.7z.001
So i wrote this but it doesn't work
[ autoit ]      
StringRegExpReplace($aFileList[$i], "(?i)([...].\(?!^7z.*))", $sRandom)

I thought id got case insensitive / match any/ not match anything after .7z/ Replace with "m6Dg9L_1V_6Hb5`A6n[2eW0Of6^O3Dd3D"

Where have i gone wrong?

Many 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>