in reply to Re: Fine tuning a reg exp
in thread Fine tuning a reg exp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fine tuning a reg exp
by Marshall (Canon) on Feb 23, 2012 at 22:12 UTC | |
Working from the whole list will make it easier to understand and parse out what he needs. If the info is public, I have no problem with making it "easier to understand" via re-formatting. And I would help with that. I personally feel "very uncomfortable" if the full info is not available to the general public and the OP's info looks more specific than what I could find. Something like this has not come up before in my time on Monks. Your URL comes up with: Fine. Yes. I know this guy in on the terrorist list. But it doesn't show all of the info that the OP had although it shows additional information. I think my pointing out that this is a terrorist list was appropriate. Let's see what the OP has to say and we go from there. | [reply] [d/l] |
by markjrouse (Initiate) on Feb 23, 2012 at 23:30 UTC | |
| [reply] |
by Marshall (Canon) on Feb 24, 2012 at 03:49 UTC | |
Update: Often when parsing data, there is not a well defined specification. We have to make guesses or ad-hoc rules based upon what we see. That is just the "real world" and how it is. To the best of my knowledge, the below code runs with the complete downloaded file as well as with my DATA segment. The desired search term is at the beginning of the record, terminated by "," or "(" with trailing spaces removed.
| [reply] [d/l] |
by choroba (Cardinal) on Feb 24, 2012 at 00:08 UTC | |
| [reply] |
by Marshall (Canon) on Feb 24, 2012 at 04:13 UTC | |
Know that you are a "hunted man", cut off your ability to transmit to the outside world and hunker down. I'm fine with that outcome. Update: This is not about political beliefs or what political party I am in most favor with in my particular country. If you are an international criminal, I don't want to help you. I will help with better understanding of public data - it is after all "public". | [reply] |
by markjrouse (Initiate) on Feb 26, 2012 at 13:13 UTC | |
Would I put this in the my @records bit as a map, or in the foreach (@records) bit? I would like to apply to each record a range of markup tags, but just not sure how I tell Perl to do this. I did try putting the above regexp sub as a map in the my @records bit but it does always work. | [reply] [d/l] |