Given a String with letters , numbers and special characters , extract Tokens from it. The rules for Token extraction are ac follows
1. Should for token of all characters till a number or special character is found
2. Should form token of all numbers till a character or special character is found
3. Special character in itself is a token
4. Ignore white spaces
For example - Bob Said "He is here"
should result in
Bob A
Said A
" S
He A
is A
here A
" S
where a is specifying alphabet and S as special character
More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Q1. Given a String with letters , numbers and special characters , extract Tokens from it. The rules for Token extraction are ac follows
1. Should for token of all characters till a number or special character is found
2. Should form token of all numbers till a character or special character is found
3. Special character in itself is a token
4. Ignore white spaces
For example - Bob Said "He is here"
should result in
Bob A
Said A
" S
He A
is A
here A
" S
where a is specifying alphabet and S as special character