extract

PHP - extract() type

Hello, PHP's extract() function can take on one of several extract_types. But what's the difference between extr_prefix_same and extr_prefix_if_exists? The manual makes it sound like, in either case, new variables will be prefixed if the variable name already exists. Thanks! ...

Find with php specific parameters in XML

Hello i have the follow problem. I have e XML file and i know the value of "uniquename=value2". I want extract the value of URL. <set uniquename="value1"> <items> <item> <units> ... </units> </item> <item> <units> ... <url>http://www.something&lt;/url&gt; ... </unit...

Splitting a string up into parts

I have a list of questions in a table, some of which are only to be displayed if certain criteria are met. A record might have criteria as simple as 4002=Y where 4002 is the question number and Y is the answer. If 4002=Y then the question is to be displayed. For records with only one criteria I have no problem. But then there are reco...

How do I extract lines between two line delimiters in Perl?

I have an ASCII log file with some content I would like to extract. I've never taken time to learn Perl properly, but I figure this is a good tool for this task. The file is structured like this: ... ... some garbage ... ... garbage START what i want is on different lines END ... ... more garbage ... next one START more stuff I...

How to extract the text between <a></a>

I must use jQuery for first time.... <a class="Tag Resource" href="http://localhost/" resource="http://localres/" property="prop">test</a> I've tried to extract the text using var = $('a').find('Tag Resource').text(); and var = $('a').find('Tag Resource').html(); but it doesn't work. I need "test" as plain text. Can someone tell me...

.NET How to extract embedded image from email message?

Hello I'm working on a project in .NET 1.1 and I have a requirement to extract (and save it somewhere) embedded image from emails that I'm receiving. Can someone give me a clue on where to start? thank you ...

can i extract the icon image from vista application? (mainly word and pdf)

i'm trying to extract the icon that shown in vista for pdf and word files. is there anyways for me to do so? also, the icon i want is the big one (128px by 128px probably?) a screenshot: ...

Extract all the links between specified html tags from an html file with sed

Hi everybody. Well I must find a way to extract all the links between <div id="links"> and </table> tags. And if there is more than one link, it should add '\n' character between the urls: "$URL1\n$URL2". <div id="links"> <table> <td><a href="URL">url</a></td> <td><a href="URL">url</a></td> </table> <table> .. </table> </div> The ones...

Simple code for extracting an icon from an .exe

Can anyone show a short and simple code snippet? It should take the name of an .exe as the input and output a .ico file. The shorter the better, and please don't recommend any binaries. This seems like such a simple task yet the only code I've found appears extremely bloated. Thanks! ...

regex php: find everything in div

I'm trying to find eveything inside a div using regexp. I'm aware that there probably is a smarter way to do this - but I've chosen regexp. so currently my regexp pattern looks like this: $gallery_pattern = '/([\s\S]*)<\/div>/'; And it does the trick - somewhat. the problem is if i have two divs after each other - like this. <div c...

is it possible to extract dynamic text from a swf (flash application) programatically ?

is it possible to extract dynamic loaded text from a swf (flash application) programatically ? ...

Extract min implemetation for heap in c++

I need to implement extract min for heap(in c++ if possible), could not get this method from STL heap. ...

How do I extract <input> tags from and (X)HTML input in PHP?

Hi, I need to extract all the tags from an HTML file, In such a way that I would end up with either an array containing key=value for each of the attributes, or at least the raw text that makes up the tag. I don't quite get along with regex, much less in PHP, so I would really appreciate some help in this. PD: Some of the tags may sp...

substring extract C# problem

hi .... i have a text like this .... ======== 1079.tif Image Description : Vexcel-UCD-Level-3 ------------------ CAM_ID: UCD-SU-1-0018 [5] RECORD_GUID: 64763E99-3573-43AD-995B-8A07E3FE2BE3 IMG_NO: 1079 CAPTURE_TIME: 2004/03/15 02:07:17.641 IMG_TYPE: H...

Extract/Export attachements from Lotus Notes Email using C#

Hello I need to extract/export the lotus notes email attachment into file system. for that I wrote following method but each time I am receiving an error at line foreach (NotesItem nItem in items).. Can anybody please tell me what I am doing wrong .. Thanks Jwalin public void GetAttachments() { NotesSession session = ...

Transform source file to different format for target system

Hi, I need to design a system which will process hundreds of source files (different format fixed width and delimited files) and convert to one target files. There should be two interfaces one is command line other web user interface? Command line interface to run the transform job though batch and web user interface to define the fo...

library that identifies similar images

I want to determine how similar 2 images are. The images may have been scaled, cropped, etc, so a simple pixel comparison won't work. I have had a look around and there are a lot of academic papers on this topic but they don't release their code. So, do you know of a released library that can compare images (for Linux and Windows)? ...

to extract characters of a particular language

how can i extract only the characters in a particular language from a file containing language characters, alphanumeric character english alphabets ...

Universal Database Backup / Extract Format

Hello, does there exist a universal database backup/extract format? I'll explain where I'm coming from: our application supports several database vendors, DB2, MsSql, MySql and Oracle. Currently when we request a backup from a customer they must make a full backup in the vendor specific format. We have a small but powerful homegrown u...

Extract MSI from EXE

Dear all I want to extract MSI of an EXE setup to publish over network!!!! There is some ways. for example using universal extractor...... but doesn't work for JAVA Run-time environment.... Is there any idea? Thanks ...