1b.app
Link copied -

How to use PREG templates??

Возникают вопросы при формировании работе с PREG шаблонами?
Мы подготовили список популярный вопросов и ответов! Посмотреть список
There are no instructions anywhere, in the video a reference to technical support.
Take a screenshot of the correct example of setting up a PREG template for a letter with an application form from the site
with three fields - by customer, product and delivery.
Thanks
Original question is available on version: ru

Answers:


Remezovich Valentin wrote:
Take a screenshot of the correct example of setting up a PREG template for a letter with an application form from the site
with three fields - by customer, product and delivery.

PCRE is a very individual thing. You can’t just take and make a template that will suit everyone.
Specifically, in the "Turn a letter into a process" action, after there is an identical template for incoming letters, a specific template is adjusted to it.
If you have such letters and you need help in compiling a PREG template - provide more information and we will help you.
04.12.2020, 16:43
Original comment available on version: ru

This is how my variables are defined. They also come with an application form. (screen 2)
What's wrong?
05.12.2020, 11:56
Original comment available on version: ru


Remezovich Valentin wrote:
This is how my variables are defined. They also come with an application form. (screen 2)
What's wrong?

It's not as simple as it seems at first glance.
Try as indicated below:
PREG template for customer data in progress:
Client Data:\s[client_name_first\s]
Client Data:\s.*?\s[client_name_last\n]
Client Phone:\s[client_phone\n]
PREG template for additional data in progress:
Delivery address:\s[delivery_address\n]
PREG template for product data in process:
Product Name:\s[product_name\n]
Product price:\s[product_price\n]
Quantity:\s[product_count\n]
07.12.2020, 13:46
Original comment available on version: ru

Thank you! It turned out for the fields - full name, phone number, address.
The goods did not pump up, respectively, the amount too.
But this is most likely due to the fact that in the box the product is named differently.
Tell me more how to set the default process to the delivery method New mail, and the payment method - imposed?
07.12.2020, 13:56
Original comment available on version: ru


Remezovich Valentin wrote:
Tell me more how to set the default process to the delivery method New mail, and the payment method - imposed?

Actions at the starting stage, look for "Change shipping method" for example
07.12.2020, 14:15
Original comment available on version: ru

shipping method changed. how about payment?
07.12.2020, 14:22
Original comment available on version: ru


Remezovich Valentin wrote:
shipping method changed. how about payment?

Try to search among the actions yourself.
07.12.2020, 14:28
Original comment available on version: ru

Having problems with the same PREG template:
There are 2 identical tasks - to turn letters into processes. one in Ukrainian - everything works. the same in Russian - recognizes only the address. phone, full name does not want, as soon as he did not try.
screenshots in attachment
22.02.2021, 20:07
Original comment available on version: ru

what does this part mean when with letters "s" - \s...s\ ?
30.08.2021, 16:54
Original comment available on version: ru

Ярина
Personal license

Kornev Mikhail wrote:
what does this part mean when with letters "s" - \s...s\ ?

like in this look: "\s", then you will be fooling around
you can check https://regex101.com/ - a handy thing for working with regular virazes, there are a lot of tips.
30.08.2021, 16:58
Original comment available on version: ru


Yarina
integrator wrote:

Kornev Mikhail wrote:
what does this part mean when with letters "s" - \s...s\ ?

like in this look: "\s", then you will be fooling around
you can check https://regex101.com/ - a handy thing for working with regular virazes, there are a lot of tips.

Thanks.
please tell me, what if the letter is not just text, but with a table, for example?

and I need to extract certain data from such a letter, then it will search not by html, but simply by text USD 17.60 17.82 ?
30.08.2021, 17:27
Original comment available on version: ru

Ярина
Personal license

Kornev Mikhail wrote:
and I need to extract certain data from such a letter, then it will search not by html, but simply by text USD 17.60 17.82 ?

theoretically, there is no row of text USD 17.60 17.82 , but three rows: USD, 17.60 and 17.82
I can't say anything about parsing tables and HTML
30.08.2021, 18:26
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment