pera_detlic Posted July 19, 2016 Share Posted July 19, 2016 Hi , i need some help with separating text into lines of array i would like :ex jaijdiajdiajdisajdiajd dadadadadadadada adadadadadadadad to be $row[1] = "jaijdiajdiajdisajdiajd" but auto generated, not manual , can u help me please? cause its a long text , and i want each line to be different variable in array . Ive tried string split and such , but its a line i cant exactly use delimeter as every ends differently , help please, thanks Link to comment Share on other sites More sharing options...
water Posted July 19, 2016 Share Posted July 19, 2016 Welcome to AutoIt and the forum! StringSplit is the function to use. Can you post the code you used for StringSplit? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 19, 2016 Moderators Share Posted July 19, 2016 @pera_detlic can you confirm, it sounds as though you are stating the entire file is one long continuous string? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
pera_detlic Posted July 21, 2016 Author Share Posted July 21, 2016 yeah , file is long continuos string , that has rows , and i want to split them and assign each row a variable Link to comment Share on other sites More sharing options...
Terenz Posted July 21, 2016 Share Posted July 21, 2016 #include <Array.au3> $sString = "123456789101112332121332143423434324322342344323423423424321" $sFinal = StringRegExp($sString, ".{1," & 10 & "}", 3) ; every 10 char _ArrayDisplay($sFinal, "") pera_detlic 1 Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
pera_detlic Posted July 23, 2016 Author Share Posted July 23, 2016 thank you so much! @terenz 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