arunhorne has asked for the wisdom of the Perl Monks concerning the following question:
Monks ~
I have a list of words in variable case that contains some synonyms such as , Arun, arun. I want to eliminate these. Now it is easy for me to do using lcfirst and I have done this. However, some names begin in square brackets or another symbol, e..g [Pyruvate], [pyruvate]. So what I need is a regular expression to perform an advanced version of lcfirst, i.e. it acts on the first word character rather than the first character? Is this possible?
Thanks, Arun
Edit kudra, 2002-05-07 Fixed unclosed code tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexes for Case Change
by Molt (Chaplain) on May 08, 2002 at 11:23 UTC | |
|
Re: Regexes for Case Change
by jmcnamara (Monsignor) on May 08, 2002 at 11:36 UTC | |
|
Re: Regexes for Case Change
by rob_au (Abbot) on May 08, 2002 at 11:40 UTC | |
by Molt (Chaplain) on May 08, 2002 at 12:08 UTC | |
by jmcnamara (Monsignor) on May 08, 2002 at 13:28 UTC | |
by rob_au (Abbot) on May 08, 2002 at 12:53 UTC | |
|
Re: Regexes for Case Change
by arunhorne (Pilgrim) on May 08, 2002 at 11:20 UTC | |
by talexb (Chancellor) on May 08, 2002 at 13:35 UTC |