1)Understanding the requirement properly
2)Matching what you want
3)Keeping the Regex manageable and understandable