Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Python • Re: find() function behavior

$
0
0
Right now i'm not considering embedded words. I'm not expecting to encounter that but if it became a problem i'd probably add a leading and trailing space to each key string then trim them off after I had them in the final variable form.

FYI I assume this is obvious but this is s SSCE of an issue on a much larger dataset. I'm parsing data scraped from several websites. While there are 25 key strings or so they are pretty consistent. Likewise for capitalisation if it became an issue i'd convert it to lower case before doing the comparison.

Statistics: Posted by ras_oscar — Fri Aug 15, 2025 5:01 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles