This question already has an answer here:
I found this below pattern in one snippet. As I am still learning regex I need help in understanding this pattern.
String pat="(?=.*?"+ word[i]+")"
This is used to find parts of string in a given string regardless of their position. So in the snippet string was a sentence and every word was fetched in an array.
Aucun commentaire:
Enregistrer un commentaire