I'm working with a word search system, I should be able to use wildcards in the input. The pattern I use works but it only allows me to use wildcards at the end of the word. I should be able to use it anywhere. Can you help with Regex?
My input pattern:
"[a-zA-ZğüşöçıİĞÜŞÖÇI] + [? \ *] {0,2}"
Example : "SEARCH**" "SEARCH?*" "SEARCH??"
i want : "SEARCH" or "S?EAR?CH" or "?SEARCH" or "SEARCH*" or "SEARCH??"
Aucun commentaire:
Enregistrer un commentaire