tempman Posted March 28, 2014 Share Posted March 28, 2014 ;| IP | OS | ;--------------------------- ;| 10.0.1.21 | Windows 7 | ;| 10.0.1.22 | Windows 8 | ;| 10.0.1.23 | Windows 8 | ;| 10.0.1.24 | Windows 7 | ;| 10.0.1.25 | Windows 7 | ;| 10.0.1.26 | Windows 8 | #include <Array.au3> Local $os = "os.txt" Local $answer = StringRegExp(FileRead($os), '(Windows 7)', 3) _ArrayDisplay($answer) Hi, i need to return the whole line in array | 10.0.1.21 | Windows 7 | | 10.0.1.24 | Windows 7 | | 10.0.1.25 | Windows 7 | Link to comment Share on other sites More sharing options...
Solution FireFox Posted March 28, 2014 Solution Share Posted March 28, 2014 Local $answer = StringRegExp(FileRead($os), '(?m)^.*Windows 7.*$', 3) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now