Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is to remove word up to first period, and capturing the all after first period. Yielding:human.NT_113898 human.contig.1 human.2 human.IV
How come my regex below doesn't work:NT_113898 contig.1 2 IV
What's the right way to do it?/\.?(\S+)/; print "$1\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing first part of string with regex
by akho (Hermit) on Jan 02, 2009 at 10:08 UTC | |
|
Re: Removing first part of string with regex
by ikegami (Patriarch) on Jan 02, 2009 at 10:11 UTC | |
|
Re: Removing first part of string with regex
by linuxer (Curate) on Jan 02, 2009 at 11:02 UTC | |
|
Re: Removing first part of string with regex
by pdcawley (Hermit) on Jan 02, 2009 at 14:21 UTC | |
|
Re: Removing first part of string with regex
by andreas1234567 (Vicar) on Jan 02, 2009 at 10:05 UTC | |
|
Re: Removing first part of string with regex
by sathiya.sw (Monk) on Jan 02, 2009 at 13:41 UTC | |
|
Re: Removing first part of string with regex
by balakrishnan (Monk) on Jan 02, 2009 at 13:31 UTC | |
|
Re: Removing first part of string with regex
by Anonymous Monk on Jan 02, 2009 at 18:03 UTC | |
|
Re: Removing first part of string with regex
by Anonymous Monk on Jan 06, 2009 at 04:20 UTC |