abdel
(Robot usa)
January 31, 2020, 2:50pm
1
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
did you try this (?<=tél :).*
@abdel
abdel
(Robot usa)
January 31, 2020, 3:27pm
5
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
rmunro
(Rene Munro)
February 1, 2020, 3:39am
6
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
abdel
(Robot usa)
February 2, 2020, 10:18am
7
Could you send the expression you had chosen
rmunro
(Rene Munro)
February 2, 2020, 2:21pm
8
Hi, it should be there by default when you search the activity
abdel
(Robot usa)
February 2, 2020, 5:27pm
9
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