Regular Expression Both Clientside and serverside evaluation