YuChan Posted January 13, 2021 Share Posted January 13, 2021 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 ? Link to comment Share on other sites More sharing options...
Musashi Posted January 13, 2021 Share Posted January 13, 2021 (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 January 13, 2021 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." Link to comment Share on other sites More sharing options...
YuChan Posted January 14, 2021 Author Share Posted January 14, 2021 #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") Link to comment Share on other sites More sharing options...
seadoggie01 Posted January 14, 2021 Share Posted January 14, 2021 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 scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
rudi Posted January 15, 2021 Share Posted January 15, 2021 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! 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