Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7344 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I'm attempting to Parse out a Price List which was sent to me on a Pdf Format.

I know some of you are just as fond as me with these parsing scripts and techniques, so I would be grateful of any help you could provide.

I'm wondering which of FM7 new text tools you'd be using here.

Attached is a sampler of the pdf document (70 pages in the final one), and below is part of the text returned from a first copy/paste to a global field.

Text Copied :

AGORA

PriceList.pdf

Posted

Ok,

I feel like I may ask too much, so here's something that just could be sufficient for me, and which I couldn't find my way through.

1.429,04 90X90D MOS HERM. R90N MOSAICO ROSONE ANTICATO PZ 1 0,81 18 1 22,22 0,81

1.368,09 MOS POSE. R90N

1.327,29 MOS EOLO R90N

1.429,04 90X90D MOS HERM. R90L MOSAICO ROSONE LUCIDATO PZ 1 0,81 18 1 22,22 0,81

What determines a Product Description *break* are the 6 last numbers of the first line and the 6 last numbers of the last one.

So that if the end of a line in my text field has 6 numbers separated with spaces, it should account for a default list of numbers that should be reported to the lines in between the 2 *breaks*.

How can you determine that a field (when each line is converted to a gExtractionField in my loop) has x numbers at the end :

Is that clear ?

Posted

This was given off list by Queue...

Length( Filter( Right( field; Length(field) - Position( field; " "; 0; PatternCount( field; " " ) - 5 )); "0123456789," ) ) = Length( Substitute( Right( field; Length(field) - Position( field; " "; 0; PatternCount( field; " " ) - 5 )); " "; "" )) AND Length( Filter( Right( field; Length(field) - Position( field; " "; 0; PatternCount( field; " " ) - 6 )); "0123456789," ) )

Thank you Queue. wink.gif

This topic is 7344 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.