J
Jack
hi guys,
A little problem here. I am very new to perl and i am having a problem
search for a substring in a file. So here is a sample
(this is my id for id="wksOI*84sk_")
(this is my id for id="@s3dSSos_")
(this is my id for id="dksWDkps_")
So i have page with 20 of these lines. all I am interested in the id
part of each line ie, wksOl*84sk_ . As you maybe able to tell the id
part of each line is 12 char and it always ends with _"). I think the
regex must be for an expression that starts with id=" and ends with
") with 12 letters in the middle. So once this id has been found I
need to write it in a file.
I know with m/regex/ I can find stuff, but I don' t how to return the
cryptic id.
Any solutions.
Thanks
A little problem here. I am very new to perl and i am having a problem
search for a substring in a file. So here is a sample
(this is my id for id="wksOI*84sk_")
(this is my id for id="@s3dSSos_")
(this is my id for id="dksWDkps_")
So i have page with 20 of these lines. all I am interested in the id
part of each line ie, wksOl*84sk_ . As you maybe able to tell the id
part of each line is 12 char and it always ends with _"). I think the
regex must be for an expression that starts with id=" and ends with
") with 12 letters in the middle. So once this id has been found I
need to write it in a file.
I know with m/regex/ I can find stuff, but I don' t how to return the
cryptic id.
Any solutions.
Thanks