YuChan 0 Posted Wednesday at 08:03 AM Hello, I have create one regex and i want show a new text. But my text is one array. How to show a entire text ? Share this post Link to post Share on other sites
Musashi 305 Posted Wednesday at 08:38 AM (edited) General note : It would be helpful (in your other threads, as well, by the way) if you could provide a complete script approach with data. Functions taken out of context or pure text descriptions of the problem are insufficient for help. 38 minutes ago, YuChan said: I have create one regex and i want show a new text. How to show a entire text ? Hard to say without knowing how the text and your RegEx looks like . Edited Wednesday at 08:42 AM by Musashi typo "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Share this post Link to post Share on other sites
YuChan 0 Posted Thursday at 12:54 AM #include <MsgBoxConstants.au3> #include <StringConstants.au3> #include <Array.au3> Global $sujet, $regex, $aArray $sujet = "Dimanche Lundi Mardi Mercredi" $regex = "\b(\w+)(di)\b" $aArray = StringRegExp($sujet, $regex, $STR_REGEXPARRAYFULLMATCH) _ArrayDisplay($aArray, "Mode 2") Share this post Link to post Share on other sites
seadoggie01 156 Posted Thursday at 04:50 PM So, when you're done, you want to concatenate the array? What should the output be? "Lundi Lun di"? All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scripts Share this post Link to post Share on other sites
rudi 31 Posted Friday at 09:55 AM Searching the help file for "_Array" will bring up a lot of functions to read up. #include <MsgBoxConstants.au3> #include <StringConstants.au3> #include <Array.au3> Global $sujet, $regex, $aArray $sujet = "Dimanche Lundi Mardi Mercredi" $regex = "\b(\w+)(di)\b" $aArray = StringRegExp($sujet, $regex, $STR_REGEXPARRAYFULLMATCH) _ArrayDisplay($aArray, "Mode 2") MsgBox(0, 'Separator = "|"', _ArrayToString($aArray)) MsgBox(0, 'Separator = "@CRLF"', _ArrayToString($aArray,@CRLF)) Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Share this post Link to post Share on other sites