
Laurent_R
Veteran
/ Moderator
Feb 8, 2017, 7:58 AM
Post #2 of 3
(5563 views)
|
Re: [dk1979] How to get the value after a string
[In reply to]
|
Can't Post
|
|
Hi, an example on how to do it (demonstrated under the Perl debugger):
DB<1> $s = '{\"id\":01,\"start_time\":\"1477954800000\",\"stop_time\":\"1485817200000\",\"url\":http:://www.example.com\}' DB<2> print $1 if $s =~ /start_time\\":\\"(\d+)\\"/; 1477954800000 DB<3>
(This post was edited by Laurent_R on Feb 8, 2017, 7:59 AM)
|