I have an array that contains various titles of windows. Their title is something like "... number 333999333 id ....". So the array looks like this:
array ("... number 333999333 id ....",
"... number 333999334 id ....",
"... number 333999335 id ....",
"... number 333999336 id ....",
"... number 333999337 id ....",
"... number 333999338 id ...."
)
I'd like to use "number" and "id" as delimiters and use the number between them to create a new array (or modify the existing one) that would contain only those numbers.
array ("333999333",
"333999334",
"333999335",
"333999336",
"333999337",
"333999338"
)
How can I achieve that?