From 89852a70f0cd9b25912dc8af68556a39ed704f8b Mon Sep 17 00:00:00 2001 From: lionsoul2014 Date: Tue, 10 Feb 2026 15:13:48 +0800 Subject: [PATCH] special chars filter sample --- binding/php/batch_test.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/binding/php/batch_test.php b/binding/php/batch_test.php index 85e61bc..5147d06 100644 --- a/binding/php/batch_test.php +++ b/binding/php/batch_test.php @@ -144,6 +144,14 @@ while (!feof($handle)) { continue; } + //@Note extract the ip address from line with special chars + // if (preg_match('/^([0-9\.]+)/', $line, $m) != 1) { + // continue; + // } + + // $line = $m[1]; + // print("ip: {$m[1]}\n"); + try { $ipBytes = Util::parseIP($line); } catch (Exception $e) {