Search Function

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€85.25
List Price:  €119.36
You save:  €34.10
£73.64
List Price:  £103.10
You save:  £29.46
CA$136.54
List Price:  CA$191.16
You save:  CA$54.62
A$152.90
List Price:  A$214.07
You save:  A$61.16
S$127.84
List Price:  S$178.98
You save:  S$51.14
HK$784.91
List Price:  HK$1,098.91
You save:  HK$313.99
CHF 79.75
List Price:  CHF 111.65
You save:  CHF 31.90
NOK kr1,008.04
List Price:  NOK kr1,411.30
You save:  NOK kr403.25
DKK kr636.07
List Price:  DKK kr890.52
You save:  DKK kr254.45
NZ$166.30
List Price:  NZ$232.83
You save:  NZ$66.52
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳12,211.45
List Price:  ৳17,096.53
You save:  ৳4,885.07
₹8,569.99
List Price:  ₹11,998.33
You save:  ₹3,428.34
RM424.05
List Price:  RM593.69
You save:  RM169.64
₦152,960.70
List Price:  ₦214,151.10
You save:  ₦61,190.40
₨28,369.07
List Price:  ₨39,717.84
You save:  ₨11,348.76
฿3,251.32
List Price:  ฿4,551.98
You save:  ฿1,300.66
₺4,001.95
List Price:  ₺5,602.90
You save:  ₺1,600.94
B$548.83
List Price:  B$768.39
You save:  B$219.55
R1,777.80
List Price:  R2,488.99
You save:  R711.19
Лв166.48
List Price:  Лв233.08
You save:  Лв66.60
₩136,992.93
List Price:  ₩191,795.58
You save:  ₩54,802.65
₪335.48
List Price:  ₪469.68
You save:  ₪134.20
₱5,640.83
List Price:  ₱7,897.39
You save:  ₱2,256.56
¥14,639.13
List Price:  ¥20,495.36
You save:  ¥5,856.23
MX$1,863.31
List Price:  MX$2,608.70
You save:  MX$745.39
QR365.01
List Price:  QR511.03
You save:  QR146.01
P1,332.16
List Price:  P1,865.07
You save:  P532.91
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,967.72
List Price:  E£6,955
You save:  E£1,987.28
ብር13,857.24
List Price:  ብር19,400.69
You save:  ብር5,543.45
Kz91,186.38
List Price:  Kz127,664.58
You save:  Kz36,478.20
CLP$94,134.58
List Price:  CLP$131,792.18
You save:  CLP$37,657.60
CN¥717.32
List Price:  CN¥1,004.28
You save:  CN¥286.96
RD$5,975.86
List Price:  RD$8,366.45
You save:  RD$2,390.58
DA12,957.92
List Price:  DA18,141.60
You save:  DA5,183.68
FJ$224.49
List Price:  FJ$314.30
You save:  FJ$89.80
Q768.73
List Price:  Q1,076.25
You save:  Q307.52
GY$20,922.44
List Price:  GY$29,292.25
You save:  GY$8,369.81
ISK kr12,156.78
List Price:  ISK kr17,019.98
You save:  ISK kr4,863.20
DH898.74
List Price:  DH1,258.28
You save:  DH359.53
L1,688.45
List Price:  L2,363.91
You save:  L675.45
ден5,241.33
List Price:  ден7,338.08
You save:  ден2,096.74
MOP$808.61
List Price:  MOP$1,132.09
You save:  MOP$323.47
N$1,772.85
List Price:  N$2,482.06
You save:  N$709.21
C$3,674.55
List Price:  C$5,144.53
You save:  C$1,469.97
रु13,714.52
List Price:  रु19,200.88
You save:  रु5,486.35
S/354.30
List Price:  S/496.04
You save:  S/141.73
K418.62
List Price:  K586.09
You save:  K167.46
SAR375.01
List Price:  SAR525.03
You save:  SAR150.02
ZK2,422.54
List Price:  ZK3,391.66
You save:  ZK969.11
L432.04
List Price:  L604.88
You save:  L172.83
Kč2,101.18
List Price:  Kč2,941.74
You save:  Kč840.55
Ft34,048.67
List Price:  Ft47,669.50
You save:  Ft13,620.83
SEK kr951.26
List Price:  SEK kr1,331.80
You save:  SEK kr380.54
ARS$126,187.92
List Price:  ARS$176,668.14
You save:  ARS$50,480.21
Bs691.04
List Price:  Bs967.49
You save:  Bs276.44
COP$399,183.29
List Price:  COP$558,872.57
You save:  COP$159,689.28
₡50,506.82
List Price:  ₡70,711.57
You save:  ₡20,204.75
L2,608.64
List Price:  L3,652.20
You save:  L1,043.56
₲796,969.17
List Price:  ₲1,115,788.73
You save:  ₲318,819.55
$U4,014.67
List Price:  $U5,620.70
You save:  $U1,606.02
zł361.79
List Price:  zł506.52
You save:  zł144.73
Already have an account? Log In

Transcript

Hello, in this python programming tutorial, we are going to look at the search function. So, the search function pretty simple to match the search just go through it until you find the first instance of whereas match only checks if it is at the start of the characters provided even though you can set an offset, it still will only do it from so like one will essentially get rid of know that for example, obviously, you will get rid of that in in the inner work and do the start here and then he will look for he out. But if we didn't pay or if he started here, and he was here, and he wouldn't work, whereas we search, you just keep going through it till he actually finds it or if it doesn't find it. So we'll keep the compile and searching really simple. It's just search And it's two two.

So if I rerun it, see what we get? So I didn't seem got non match, which is this one, then we got a match, because we're at the start. So first one doesn't give me Okay, the second one does, then it's out. So match. Then the third one, we start here. The first case the next is our cow match.

The final one. We start over here for the first letter ignore knee. And so we keep going till we get to an A Nope, no other than these no way we can continue to see if he is, you know, is a match, but you know, successfully searched for in our little string. So that's it for the search method. As I mentioned in the match method, you can further advance these regular expressions and I'm gonna put a link in description to Be able to create your own patterns and add an extra task. Have a go at doing that.

But that's really it for match and searching the core essence the differences between the fans watching. I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.