Remove characters from alphanumeric string
Submissions: 2923   Accuracy:

40.97%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Remove all characters from an alphanumeric string.

Input:
The first line of the input contains T denoting the number of testcases. First line of each test case will be an alphanumeric string.

Output:
 For each test case output will be a numeric string after removing all the characters.

Constraints:
1 <= T <= 30
1 <= size of string <= 100

Example:

Input:
1
AA123BB4

Output:
1234

** For More Input/Output Examples Use 'Expected Output' option **

Author: Yash Goel


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.