How to select the number eg: 10000 but not -10000-10000 or +1 (123) 456–7890-123654

Hi team,
How to select the number eg: 10000 but not -10000 or -10000-10000 or +1 (123) 456–7890-123654

please find the below input and expected output .
Expected output number.docx (12.6 KB)
Input Number.docx (13.0 KB)

@Manasahr The question is actually related to Aspose.Words. You can construct your regular expression to match the required number format. Please see regular expressions documentation for more information:
https://www.regextutorial.org/regex-for-numbers-and-ranges.php#:~:text=\d%20for%20single%20or%20multiple,is%20used%20for%20character%20range.