Jump to content
YuChan

Array regex

Recommended Posts

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 by Musashi
typo

Musashi-C64.png

"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

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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts

Share this post


Link to post
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...