Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3031 Vizualizări

Example: I have a string "Chicken Wings" and i just the chicken word to display. Thanks in advance    ​

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,
Try  some_string.split(' ', 1)[0] or some_string.partition(' ')[0] , wheresome_string is your string of field holding the string value. 

Source: https://stackoverflow.com/questions/13750265/how-to-get-the-first-word-in-the-string

Thanks

Imagine profil
Abandonează