[Discuss] string manipulation under linux
Owen Stampflee
owen at stampflee.com
Fri Oct 9 09:04:33 PDT 2009
sed -e s/.*:http/http/
On Fri, Oct 9, 2009 at 8:50 AM, brent sirna <bsirna at pinetreeline.org> wrote:
> On Fri, 2009-10-09 at 18:43 +0800, David Wu wrote:
>> Hi All,
>> I am wondering what is the best to to get substring of "http://www.foo.com"
>> from "abcd*:http://www.foo.com"?
>>
>> Notice anything before http is in the form of *:, ie "12:", "ab67:" "or
>> 987201847:"
>>
>> Thanks in advance!
>>
>> David
>> _______________________________________________
>> Discuss mailing list
>> Discuss at vlug.org
>> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
> Hi David,
>
> What language are you using ? If I had my choice I would used Perl and
> do it with a regular expression.
>
> Brent
>
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
More information about the Discuss
mailing list