Jump to content

Recommended Posts

Dear Forum-Members,

i´m trying to read the content from an .xml file with StringRegExp

it works fine but is there an option to fill the array at empty spaces with something like a placeholder?

my skript:

$Dateiwahl=FileOpenDialog("Wähle XML-Datei!",@ScriptDir,"XML (*.xml)")

Local $XMLSTRING = FileRead($Dateiwahl)

$PosBeginn=StringInStr($XMLSTRING,"<Ntry>")

local $Bank = StringRegExp($XMLSTRING,'<Id><IBAN>(.*?)</IBAN></Id>',3,$PosBeginn)

I get a column with a lot IBAN´s.

At some places nothing between <Id><IBAN>(.*?)</IBAN></Id> is found. For theses NULLS i want a Placeholder

What it looks like:

DE123455887136

DE125565881445

DE125668944552

DE125565699855

 

What it should look like:

DE123455887136

DE125565881445

NULL or OTHER SPACEHOLDER

DE125668944552

DE125565699855

 

Thank you :)

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...