0

Fill in the blanks to match both 'color' and 'colour'.

pattern = r"colo_u)_r"

24th Mar 2018, 7:02 AM
Dhaval Bhoi
Dhaval Bhoi - avatar
14 Réponses
+ 7
pattern = r'colo(u)?r'
24th Mar 2018, 9:10 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 5
pattren = r " colo ( u ) ? r "
10th May 2019, 5:18 PM
Zohaib Ahmed
Zohaib Ahmed - avatar
+ 2
Fill in the blanks to match both 'color' and 'colour'. Answer :- pattern = r"colo(u)?r"
29th Jun 2020, 5:53 AM
Gourav Tomar
Gourav Tomar - avatar
0
thank you
6th Mar 2019, 2:44 PM
MAX EARNSHGAAW
MAX EARNSHGAAW - avatar
0
pattern = r'colo(u)?r'
5th Jul 2019, 2:06 AM
Abdullahi Hassan
0
r"Colo(u)? r" Because we want to get both color&colour
13th Jul 2019, 11:30 AM
Nareshpal
Nareshpal - avatar
0
Fill in the blanks to match both 'color' and 'colour'. pattern = r"colo ( u) ? r"
15th Mar 2020, 4:01 AM
sivaguru y v
sivaguru y v - avatar
0
pattern = r"colo(u)?r"
13th Apr 2020, 9:11 AM
Manoj Dhawan
0
What would be the result of len(match.groups()) of a match of (a) (b(? :c) (d) (? :e))
14th Apr 2020, 12:25 PM
BOORI LOKESH
BOORI  LOKESH - avatar
0
btw the answer ( & ? is right.. but my below code dint work.. line = "colour" if re.match(r"colo(u)?r", line): print(match)
4th May 2020, 3:43 PM
Pravinkumar More
Pravinkumar More - avatar
0
pattern = r"colo(u)?r"
10th May 2020, 2:28 AM
Manish Samota
0
u
5th Nov 2020, 2:48 PM
dammika rajapaksha
dammika rajapaksha - avatar
0
Fill in the blanks to match both 'color' and 'colour'. answer : pattern = r"colo(u)?r"
9th Jun 2021, 10:37 AM
Madhavareddy
Madhavareddy - avatar