I need a pattern to extract five consecutive numerics only.
ExampleA: 123456789 dsadss12345@3_- 1d22d333
ExampleB: 12345_ 2d2d2 aaa2222a
ExampleC: 2d2jj ddd_@12345
Wanted output: 12345
or
(not number: "espace"; "letter"; "symbols:,-& etc")(5 consecutive numbers)(not number: "espace"; "letter"; "symbols:,-& etc")
or
(5 consecutive numbers)(not number: "espace"; "letter"; "symbols:,-& etc")
or
(not number: "espace"; "letter"; "symbols:,-& etc")(5 consecutive numbers)
Tried these:
(1)strPattern = "(((\s|\D|\W)(\d{5})(\s|\D|\W))|((\d{5})(\s|\D|\W))|((\s|\D|\W)(\d{5})))"
(2)strPattern = "\d{5}"
(3)strPattern = "(\s|\D|\W)(\d{5})(\s|\D|\W)"
(4)strPattern = "\D(\d{5})\D"
(3) won't work with ExampleB
(2) won't work with ExampleA
(1) is the best I could get but it won't work in few cells.

