cancel
Showing results for 
Search instead for 
Did you mean: 

[UFD-Question] How to grab parts of an xml between two tags,multiple lines

Former Member
0 Kudos

Hi all,

is there a way in UFD to grab multiple lines between structural tags?

for example:


<HEAD>
.....
.....
.....
</HEAD>
<DETAILS>
....
....
....
</Details>

I need to get the part between <HEAD> and </HEAD> in multiple lines!

I tried to write regexp (in several flawors) and along with the built in keyword options, but nothing seems to work, eather i get all the lines or only one line...

Shouldn't UDF use .net regexp? ( as far as i know), but .net regexp .* doesn't get \r,\n but UFD does... but if i write the regexp to include \r\n etc after a <HEAD> lookforward, then it ignores it... and grabs only one line starting with the tag....

Please help.

Thank you.

Regards,

Daniel

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member662620
Participant
0 Kudos

Hi,

Please try below reg expression

(?<=<HEAD>)(.\r\n)(?=</HEAD>)

Former Member
0 Kudos

hi, I was trying with

(?<=<HEAD>)(\d\D\r\n)*(?=</HEAD>)

Still not working....

there must be something else wrong here...

Can someone tell me whats the latest UFD version please?

former_member662620
Participant
0 Kudos

Hi,

You can download an example from below link,

https://sapmats-de.sap-ag.de/download/download.cgi?id=AG1XXSUNZNWS4AA1YLC8BVCI9Z6R8JBW4N07UCEZHQEVMS...

Password is 1234

By the way, you can find lastst format definition version in the package of B1 8.81 PL05

Edited by: Taylor Shao on May 24, 2011 4:01 AM