HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   Help in script - Getting table name from a text file (http://www.howtoforge.com/forums/showthread.php?t=51844)

sams 11th March 2011 05:37

Help in script - Getting table name from a text file
 
1 Attachment(s)
hhhhhhhhhh

rodobrist 12th March 2011 10:37

I could probably do it in php, i dont know if this helps you

but isnt it simply

step 1 get text inbetween for and *** via regex /for[^C]+(\*\*\*)/
(the capital C is to stop the next Current)

step 2 get text between first space and second space /\s[a-z0-9]+\s/

step 3 trim

As i said, could give you exact commands for php, but im no linux scripter


All times are GMT +2. The time now is 06:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.