2014年3月16日 星期日

Regular expression in action II

撰寫一個網頁能夠自動檢查輸入的字串是否為網址(例如
163.17.9.5
www.cycu.edu.tw
是合法網址

123.222.2
999.999.999.999
www.cycu
不是合法網址)

2014年3月11日 星期二

Lab Regular expression in action

Write a form to send a query to Google maps. If the input is not in the format of coordinates, display an error and ask the user to retry. For example, an incorrect input may look like 12.a2,21.22

Hint: