Amin El-Zein
asked on
regexp later case
Hello,
how I can create a regular exp for :
c:\windows but without match the letter case.
thanks.
how I can create a regular exp for :
c:\windows but without match the letter case.
thanks.
Case-insensitive regexes tend to be messy. In such situations (and especially when more than one comparison will be done) it is simpler both in terms of computation and regex readability to convert the input to lowercase before attempting the match.
ASKER
i dont know how to write it
could you please give ne an exmple regarding me question
thanks
could you please give ne an exmple regarding me question
thanks
Just add the RegEx to match case insensitive (/i). This depends on where you use the RegEx
https://regex101.com/r/NXUhiF/1
https://regex101.com/r/NXUhiF/1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.