Hypnotik Posted February 19, 2014 Posted February 19, 2014 Hey i'd like to read a txt file containing letters, and i want to move them into another txt file, but to move only the words that dont contain a "-" and that are smaller than 6 letters is that possible?
Danyfirex Posted February 19, 2014 Posted February 19, 2014 Yes is Posible. Example of the file? Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Hypnotik Posted February 19, 2014 Author Posted February 19, 2014 http://grabilla.com/04213-7ab02eaa-b391-444c-b03c-6336666ebcee.html
Danyfirex Posted February 19, 2014 Posted February 19, 2014 I don't see any "-" I think you Mean "_" Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Hypnotik Posted February 19, 2014 Author Posted February 19, 2014 I don't see any "-" I think you Mean "_" Yep sorry i meant _
Danyfirex Posted February 19, 2014 Posted February 19, 2014 maybe not the most efficient way but it should work. #include <Array.au3> #include <File.au3> Local $Data=FileRead("au.txt") $Data=StringRegExpReplace($Data,"[A-Za-z_]{6,}",".") $Data=StringRegExp($Data,"[A-Za-z]{1,5}",3) _ArrayDisplay($Data) _FileWriteFromArray("newau.txt",$Data) Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now