Link to home
Start Free TrialLog in
Avatar of Amin El-Zein
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.
Avatar of Dr. Klahn
Dr. Klahn

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.
Avatar of Amin El-Zein

ASKER

i dont know how to write it
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
ASKER CERTIFIED SOLUTION
Avatar of wilcoxon
wilcoxon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial