example:

random text and characters : 12 more random test

more random text : 45 more random characters

I can match the numbers 12 and 45 with (?: [0-9]+) but now I need to delete everything around the number or copy and paste the number to a different file.

example:

random text and characters : 12 more random test

more random text : 45 more random characters

I can match the numbers 12 and 45 with (?: [0-9]+) but now I need to delete everything around the number or copy and paste the number to a different file.