How to get number from paragraph

I want to Show Number from a paragraph which contains text,number,spacial charecter and so more…

but I want to show separate the number only

Ex: Lorem Ipsum is simply dummy text 1998 of the printing and typesettin. phone +170754654

ans:
1988
+170754654

you can use Regex extension

Also you can use regex extension by @Kevinkun

\+?[0-9]\w+

1 Like