extract data using a regular expression

EspieNL

I would like to extract this data and store it in an array. But I can't seem to find the proper regular expression.

-- Schedd: LP0162.marin.local : <172.16.102.40:58875>
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               
  13.0   JJansen          2/6  09:17   0+00:01:28 I  0   1953.1 Test.bat          
  13.1   JJansen          2/6  09:17   0+00:01:28 I  0   1953.1 Test.bat          
  13.2   JJansen          2/6  09:17   0+00:01:28 I  0   1953.1 Test.bat          
  13.3   JJansen          2/6  09:17   0+00:01:27 I  0   1953.1 Test.bat          
  13.4   JJansen          2/6  09:17   0+00:00:50 I  0   1953.1 Test.bat          
  13.5   JJansen          2/6  09:17   0+00:00:50 I  0   1953.1 Test.bat          
  13.6   JJansen          2/6  09:17   0+00:00:50 I  0   1953.1 Test.bat          
  13.7   JJansen          2/6  09:17   0+00:00:50 I  0   1953.1 Test.bat

It should return something like this:

Array
(
   [0] => array
      [0] => 13.0
      [1] => JJansen
      [2] => 2/6 09:17
      [3] => 0+00:01:28
      [4] => I
      [5] => 0
      [6] => 1953.1
      [7] => Test.bat
   [1] => array
      ...
)
...
SimonSimCity

I would try to go for a combination of reading the input per line (or exploding it on line-break) and explode it by using preg_split(), where you can use the regular expression (\S+), @acarlon wrote.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using regular expression to extract string

From Dev

java: Extract a substring using regular expression

From Dev

Extract Segments from String using Regular Expression

From Dev

Extract name using Regular Expression

From Dev

Using regular expression to extract values that contain comma

From Dev

PHP Regular Expression to extract JSON data

From Dev

regular expression to extract sections

From Dev

PHP Regular Expression - Extract Data

From Dev

Extract particular value using regular expression in Python

From Dev

Perl Regular expression extract

From Dev

Using a regular expression to extract substring

From Dev

tidyr extract regular expression

From Dev

extract substring with regular expression

From Dev

Extract Regular expression in php

From Dev

Using regular expression to extract string

From Dev

Regular expression extract string

From Dev

Extract data using regular expression

From Dev

PHP Regular Expression - Extract Data

From Dev

Extract particular value using regular expression in Python

From Dev

Using Regular Expression to extract an Object and its Attributes

From Dev

Extract Regular expression in php

From Dev

Extract range using regular expression

From Dev

How to extract the response using a regular expression for Jmeter?

From Dev

Extract data using Regular Expression in C#

From Dev

Extract value by regular expression by using imacros eval

From Dev

Regular expression using grep to extract an IP address

From Dev

extract string using regular expression

From Dev

Regular Expression to extract data between two bracket

From Dev

extract number using regular expression