Extract phone numer

Hello guys,

i’m back with the same problem, i want to ewtract the phone number btweenn two tring, i had used this:

(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})

but for example: "tél : 01 49 30 32 05 " it did not work

Hi
is this the complete string
or
can we have more samples from which we can get the one we need with a expression
@abdel

here is another one

did you try this (?<=tél :).*

@abdel

in fact this expresion: (?<=l:|l :).[0-9\s0-9\W]* does not works for exemple for : tél : 01 49 30 32 05 wheareas it works for Tel: 01.56.95.25.25

Hi,

Did you tried Matches? Use matches and delete all spaces from the string it should give you the result. To delete de spaces you can use replace to delete all spaces “tél:0149303205”

1 Like

Could you send the expression you had chosen

Hi, it should be there by default when you search the activity

Thank you but if there is spaces or" - " between number will it work?

For exemple tel : 01.09.08.89.67
Or 01-09-87-86-77-98