REGEX Issue to extract data from a string

Hi everyone,

Here is my use case.
I’m scanning barcodes with the data “A0000015665279” inside it.
I want to extract from this code only the part “15665279”.

I tried to use the following REGEX to do this : /[A-Z]0*(\d+)/

I tried to use the REGEX_MATCH function in TULIP :
image

But I don’t have any outputs in my variable.

Any advice on what I’m doing wrong ?

Thanks,
Paul

I do not know if this is expected behavior, but it seems like you should either try these

  • ‘[A-Z]0*([1-9]+)’
  • ‘[A-Z]0*(\d+)’

It worked in my sandbox(r303.1)

4 Likes

OK, this community post also seem to escape \ .
You should either try

  • ‘[A-Z]0*([1-9]+)’
  • ‘[A-Z]0*(\\d+)’

Please note that you need two ‘\’ before ‘d’

1 Like

Maybe you would like to vote for this Product Suggestion!

3 Likes

Hi @ta-aoki, thank you for the inputs ! The REGEX you sent are working perfectly :+1:

2 Likes