Question:


 What pattern would following RegEx match: (#?([A-Fa-f0-9]){3}(([A-Fa-f0-9]){3})?)



Answer: This should be easy for the web developers. Look on the pattern, the example string you can write is #FFFFFF which is HEX color for white. So, you would probably use it as a validator for the color field. For this type of questions just write on the board strings which would fit into the pattern until you understand that this set has in common.








Answers and Comments