in reply to Can you have partial case-insensitivty in a regexp?
Sure, if you check the perlre manpage you will see that the (?imsx-imsx:pattern) construct will do it:
/<a href="http:\/\/(?i:somelink.com)"/
I suggest you use a delimiter other than / because of the leaning toothpick symdrome it creates in this instance. Also, you should keep in mind that HTML tag names and paramater names are not case sensitive, and neither is the protocol name, so you might just want to make the whole pattern case insensitive in this case. It is only the path of the URL after the hostname that is case sensitive.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can you have partial case-insensitivty in a regexp?
by Anonymous Monk on Dec 19, 2005 at 08:09 UTC | |
by zigdon (Deacon) on Dec 20, 2005 at 17:59 UTC |