in reply to Capitalization and Regex
I think you might want to look at the /i regular expression modifier, explained in perlretut and perlre, or the uc and lc functions, explained in perlfunc.
You can change the capitalization in portions of strings with the \l and \u metacharacters (for one char at a time) or the \L, \U, and \E metacharacters (for altering the case of chunks of characters). These are also described in detail in perlretut.
Update: Thanks Anonymous Monk for finding a more accurate way to express my thought. I've corrected the verbage.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Capitalization and Regex
by Anonymous Monk on Oct 26, 2003 at 22:21 UTC | |
|
Re: Re: Capitalization and Regex
by Anonymous Monk on Oct 26, 2003 at 22:22 UTC |