Answer:
regular Write down the extended 2. expression for following questions. E.g. Socialsecurity number the in format of 999-99-9999. [0-913} [0-9]{2} [0-9]{4} Answer 1) Valid ".edu" (e.g URL beginning with "http://" and ending with ennenennen http://cs.gsu.edu http://gsu.edu 2) Non-positive integers. -3320) (e.g. -0, -1, pathname in /test/try.c) Unix (e.g 3) A valid absolute /home/umahm0od 1, 4) Identifiers character and 8 which be between 1 can with a long, must starting an underscore. The following characters can number or be letters (e.g. 1number _name underscores or or 1_2_3_4_) 5) Phone number the following format: in any of (999)-999-9999. (Note: all of these by 9999999999,999-9999999, formats should be matched singleregular a expression) 6) A String of format (Firstname Lastname any combination of band) e.g (Usman Mahmood and, Khadija Ashraf aa)
4. Regular Exprefen for the URL - /AHp:(A2a] 42,3)+ \eauf Explainaton T is ued for the beginning of asting ar ine It is used for the eaing of a sthing or line At leat 2, A most 34mes 12,3 TI one or more 4imes 77 Special Chayactes in egular expresion are the Thave tD ecape to (offestas a Ma Character. uing So to Stant the unl with http:/, hale end itoith .edu we Ahttp:V and to .edusin tha exprenion have use
2 Nan Negatle et NA ldfwed for single digit 0through 9. exo OT One me +' one or more time Meaning otd+s means ihoy ld start e tho to g 1 tolloved by any nuro ben of digits land end with the digit only igt t Meang ot/tld it can starf means ne o zeno with+sig or not meany +sign Po lbuoed by any of dhaits and end digit only With the
3. For Valid absolute Pathname For leHer,numeral or, undeucore J 0 /( +D (, 10/ 4. 9 ero or ore tmes RA)7 + - one ore move mes 1aacdmaximum o 1,20 minimum OR At leatt 4,At mot 10 ^LA-a- Start ofth ei ther alphabet under
OR CAa- * 2o wIs for leter Numexal or unde selou 10Eld3)L dPor any Single digt o thaough 9 Lll