Reputation: 114
For example I have a string line as follows
What is your family Occupation? [RMB 2011]
I want to extract two data from here.
The RMB part can be of any length. I have used following regex pattern to extract the data
^[(\[][A-Z]{3}\s\d\d\d\d[)\]]$
But it does not match anything in the string. Please let me know what I am doing wrong.
Upvotes: 0
Views: 60