PHP: using REGEX to get the tablename from a mysql query
        Posted  
        
            by Matt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matt
        
        
        
        Published on 2010-03-18T09:01:46Z
        Indexed on 
            2010/03/18
            9:11 UTC
        
        
        Read the original article
        Hit count: 409
        
Hi Guys, Consider these three mysql statements:
select * from Users;
select id, title, value from Blogs;
select id, feelURL, feelTitle from Feeds where id = 1; 
Now im not very good at REGEX, but i want to get the table name from the mysql query. Could someone possibly create one for me with a little explanation.
Thanks,
© Stack Overflow or respective owner