1b.app
Link copied -

Hello - how to write preg correctly?

Here in the integration there is a setting "Import orders with ALLO"

If on Allo we have such an article

format [article in crm]-xxxxxx
Where you need to remove -ххххх at the end and so that all characters except the last X are taken, how can this be done, please tell me
Original question is available on version: ru

Answers:

^(.+?)\-(\d+)$
you can check regular expressions here https://regex101.com/
26.11.2021, 17:17
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
The code itself just needs to be taken in brackets like on regex? Does the variable need to be added?
26.11.2021, 17:29
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