String manipulation!

Thème :
Planification et dimensionnement d’un
réseau LTE sur le Grand Tunis
Réalisé par :
#Hello everybody i want to extract the 2 lines between “Théme:” and “Réalisé par :” .please i need your help as soon as possible

Hi @Dhia_Eddine_Daikhi

try to use below method.
str.Substring(str.IndexOf(“Thème :”) + 7, str.LastIndexOf(“Réalisé par :”) - 7)

hi wusiyangjia it get more than i need

Hi @Dhia_Eddine_Daikhi

If your string is not just 4 lines as you said.
you need try to use below method.
str.Substring(str.IndexOf(“Thème :”) + 7, str.IndexOf(“Réalisé par :”) - str.IndexOf(“Thème :”) - 7)

1 Like

it worked thank you but i need to understand the logic because i will use it in other tasks .and thank you again

i get it thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.