I have got a string containing an address and I want to remove the post code which is the last 2 words.
eg 21 Lane Street London W10 2GH
I want ‘W10 2GH’ removed
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Replace the pattern
\s*\w+\s+\w+$with an empty String:produces:
A short explanation: