Hypnotik Posted February 19, 2014 Share 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? Link to comment Share on other sites More sharing options...
Danyfirex Posted February 19, 2014 Share 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 Link to comment Share on other sites More sharing options...
Hypnotik Posted February 19, 2014 Author Share Posted February 19, 2014 http://grabilla.com/04213-7ab02eaa-b391-444c-b03c-6336666ebcee.html Link to comment Share on other sites More sharing options...
Danyfirex Posted February 19, 2014 Share 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 Link to comment Share on other sites More sharing options...
Hypnotik Posted February 19, 2014 Author Share Posted February 19, 2014 I don't see any "-" I think you Mean "_" Yep sorry i meant _ Link to comment Share on other sites More sharing options...
Danyfirex Posted February 19, 2014 Share 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 Link to comment Share on other sites More sharing options...
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