Skip to content
Advertisement

Retrieve the value of each custom markup

How to get each value after the “=” with the shortest script?

DATEADDED=20210301 20:21:02 IDENT=* IP=88.164.x.x REASON=aaa bbb ccc… NOTE=xxx xxx x x x x…

Put everything in an array

Example:

Result response of array : ['20210301 20:21:02', '*', '8.164.x.x', 'aaa bbb ccc...', 'xxx xxx x x x x...']

Advertisement

Answer

finally I was inspired by another code that I had for a long time in a source :

JavaScript

works well. Question resolved

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement