Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Find substring

  •  04-25-2007, 9:34 AM

    Find substring

    Hello everybody,

    I almost feel bad about writing here - but I really tried for days now. I need a string filtered (matched) from a string like this:

     

    @s My Company Ltd@o My-Street-adress 123@o New York@pt 123-35-144@t Mobile@pt 593-1195-1395

     
    I am trying to filter out the company´s name (which always is from the beginning of the string, starting with @sSPACE and ends with the following @ (which doesn´t need to be @o, can even be @pt or whatever. I can manage to get it to work with

     

        $Row=preg_replace("/@s (.*)@.*/", "<h1>$1</h1>", $Row);

     

    (using PHP), but no go. Please, can anybody help me out here, please?

     



    Thanks a bunch!!!

     

    Christoph 

    Filed under: , , , ,
View Complete Thread