Professional Documents
Culture Documents
Stndente : oput )
Pr'ot num)
Ouipud
LPpp99422,
124 91, PPP'
evaluaktto
bhad do the following_cpre ssions
0 Hello world 1[ij
Helloworld! [0:5
le Luo
Hello wold!:5
Helo'
Hello wo-ld!3:]
w0nld_
3 Explain jus ), Ljus 0, shio), 1Sirip) (ship) wh Suilable
CLQmpleto each.
Theiustiust) 4 Ljust0 shing methods netuno a padded
VEu Sion Othestring thty Qune caled on t h Spates
Spaes
fnStgttd to ustity the t
72 Hcllo.gjust (a0, *)
**** * *** ***** * Helio
-2
Hello just l30, '-')
Hell
- -
ttello woyld
Spam
Spam Shp C
Helo 2prld
7 Spam Stip ()
Hello Lwonlo
22 sPom s trip D
Hello uWOg ld
Hello' uppta().Cowtu )
hello
Baiu0 DuOLOL0oma
Plus (4)
whle meas " malch 2Cn0 o monethe+(or Plus) mfoat
matth Oae 0 mone Ontke heSt ohith does no
heçuine ifs Gncup foappeal ln he mafchedStafng, he
Ganoup punecedino plus must Oppean ai Ceas
OFno Optidnal
77 bal Reger e- Comp?le ( Bai wo)Aman
mo1mol baB ReatrSeounth The Advenituunes oBalwome
m01 anoup
Batwoman
Match
he othtn hond ndallOtAI noacluan a
alOng hene Que
ohiec bu a ist oSirng n
egarepuesSionSach Strnp
ho noups 90the
the Seanched thad mafched
ho mafched
he (is sGpfece O
The_ncgzua.h Cxhune sstoa
\alad&)
22phoocMum Reqtr t
onple ldla ld.ldlJld-
#hos 1oQunoup
His555-gq912-555-0000')
iadall Cellt
222 phoneNum Regex
l19
555-9999212- 5S5- O000J
ue-compfle la'ld+, what ufl numnum Reath )
Rrath
8 numReqex
ntnekuan
pipcuns, ive aingi3 henS)
X 1 duntmmfin5,
Second0agcmeni fo :
eVER00SE COnte_ Co mmeatS_
whod yo wGn Ho tuse bul also 0ai oust
eguloa pacssion
1 gnul Onjenitunattl
gnoneCapttehattoo
e 1GNORE CASE o
O siagle Valtue
Val
unckion akes coly Single
a kes oaly
the
the e. (ompile )
Q g u o fni.
-0sHs Second
noundhis lEaidalfon by Combining
Combiainq
You Can ge 4 ne. VERROSE
neBoTALL
the
the Je TGnoRE CASE
vasiables using the pfpe chonacienL ohich in thie
optunato0n.
Conlexfs kn0wa 0s he bffwfse
234
C362,3u
bu not he ollDing
12 34,563(ohchhas anly ttoodatsblw
he CommaS
103 which tocka Commal
Imphni e
numReat nt Compileu (C<!\d)\d 1,3
Chd)(id{3}t)"
txA o babs 123, 23, 4t, 1a 1234 12,311
1,3u,567 M3ul 1,213
1S DumReger indall (tut)
fox i n 1S:
pinl y Io)_