Welcome to openkapow Sign in | Join
.

Extract the first word from a text

  •  03-22-2007, 12:02 PM

    Extract the first word from a text

    Hi, I'm not very good with regular expressions, so if anyone can help me...

    I have simply to extract the first word from a text, so it must stop on the first whitespace I think.

    Example:

    apple (house) -> apple
    computer tree city -> computer

    Suggestions?

    Thanks in advance!
    Filed under:
View Complete Thread
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy