Search Result

Collapse
16 results in 0.0040 seconds.
Keywords
Members
Tags
parsing
  •  

  • starlight849
    started a topic RegEx Question

    RegEx Question

    Looking for the best way to parse a phone number (in a 3-3-4 format) from a string..
    The string may contain a lot of junk information on the line.
    If there is a code following the phone number then I also want to pick that up.


    Code:
    For example 
    String1 = "This is string 1 and here is my phone number 123-456-7890"
    
    String2 = "String 2 is 123-456-7890USA"
    ...
    See more | Go to post

  • LaurentPerche
    started a topic preg_match_all to retrieve data from HTML page
    in PHP

    preg_match_all to retrieve data from HTML page

    I am a beginner so bare with me please.

    I am trying to create a PHP script to retrieve the location of an IP address using the info sniper.net webpage.

    I am trying to parse the following HTML code:
    Code:
    map.openInfoWindow(map.getCenter(),"<br /><strong>n/a, Hong Kong</strong>");
    and thought that the following PHP script would work:
    Code:
    <?php
    $str = file_get_contents("http://www.infosniper.net/index.php?ip_address=203.84.219.114");
    ...
    See more | Go to post
    Last edited by LaurentPerche; Apr 11 '12, 11:20 AM. Reason: couldn't get the [CODE] tag to work

  • I need to extract the number of google plus likes with javascript

    Hello, I need to extract the number of google plus likes of some pages, for example bytes.com

    the number is here:

    https://plusone.google. com/u/0/_/%2B1/fastbutton?coun t=true&url=http ://www.bytes.com/


    When you look at the html, you see much text and this:

    window.__SSR = {c: 6.0 ,

    the number after c: is 6.0, which is the number of likes.

    But I don't...
    See more | Go to post

  • hervebags
    started a topic How to parse this file?
    in Perl

    How to parse this file?

    Hi,

    I have only been learning Perl for less than 2 weeks. I am a C++ programmer.
    I have attached a portion of the data below. The data is in file1.txt. I would like to move the data from file1.txt to file2.txt. But, I only want to keep the numbers.

    Eg: I want row 1 to look like this:

    1 1549367 11 8 3 11 0 -12.00 6.00 -0.25 -3.00 0.00 -1.67 -12.00 6.00...
    See more | Go to post

  • How to check if check box is clicked and send info to mySQL?

    Hi,

    I just started using check boxes to send information to mySQL. What I want to do is to send id of the user and article to database when check box is clicked and when it is un-clicked remove that information from database.

    Right now I am at this stage

    Code:
    <?php
    
    if (isset(//if user is logged in)) { 
    $addFavorite = '<input type="checkbox" id="favoriteIt"
    ...
    See more | Go to post

  • How to make php parsing script to insert "<option> from <select>" into database?

    Hello,

    Alright so I have had this problem for a while. I have a page on a website where members write their articles and they select a category that is relevant to that article. I have made a following <select> form with <options>

    Code:
    <SELECT NAME="Categories">
    <OPTION VALUE="option 1">option 1
    <OPTION VALUE="option 2">option 2
    <OPTION
    ...
    See more | Go to post

  • Inbar Rotem
    started a topic js changes to DOM

    js changes to DOM

    Hi,
    I am looking for a way to get all the urls from a web page (images, forms , js etc..). I am having trouble extracting the urls from the js itself.
    Therefore, I am looking for a way to get the js's changes to the DOM and know which js did it.
    So far I was unsuccessful.
    Any ideas?

    Inbar.
    See more | Go to post

  • how to display parent node attribute name in xmlDocument

    hi, im trying to display the attribute name of the parent node once the input matches a town name:

    my xml is:

    Code:
    <phonebook>
      <area code="022">
        <town>mallow</town>
      </area>
      <area code="023">
        <town>bandon</town>
        <town>bray</town>     
      </area>
      <area code="024">
    ...
    See more | Go to post

  • Dragomir
    started a topic Using flag for excluding double quotes...
    in C

    Using flag for excluding double quotes...

    Hi, I'm using a flag to try and not include text for parsing in double quotes.
    When trying to use flag for comments it works but it doesn't with the double quotes...
    Can you tell me why it didn't work?
    Code:
    #include <stdio.h>
    #define IN (1)
    #define OUT (0)
    int main()
    {
        FILE *fp;
        char c;
        char d;
        int m;
        int i;
        char f_name[255];
    ...
    See more | Go to post

  • Chrisatnetronix
    started a topic Parsing Raw email data
    in PHP

    Parsing Raw email data

    Currently I need a email piping to a php script then I need to separate into variables

    $from
    $subject
    $message


    I then need to take the above variables and insert them into a mysql database

    I wrote a parser php script that does ok, but it seems to work in

    thunderbird email client
    comcast webmail

    if I use outlook it includes a bunch of encryption...
    See more | Go to post

  • Anthony Keane
    started a topic Parsing XML File selected by user

    Parsing XML File selected by user

    I am trying to allow a user pick the XML file that they would like to parse and use a generic parser to accomplish the task. The code is taken from different websites, just wondering if the code I have so far can be integrated and if so how?

    Code:
    import Tkinter,tkFileDialog
    import os
    from xml.etree import ElementTree as ET
    
    root = Tkinter.Tk()
    file = tkFileDialog.askopenfile(parent=root,mode='rb',title='Choose
    ...
    See more | Go to post

  • fractalengine
    started a topic What type of image is this?
    in .NET

    What type of image is this?

    I have been trying to reverse engineer a small hardware scanning device. The vendor has a DLL with a function called "GetImageDa ta" that I've been executing in VB.NET

    It is defined as below:

    Code:
    GetImageData(imageData_out as String, pWitdh as Uinteger, pHeight as Uinteger) as Boolean

    Right after calling the function I execute the following:
    Code:
    Text.ASCIIEncoding.Default.GetBytes(imag
    ...
    See more | Go to post

  • Haskell Parse Paragraph and em element with Parsec

    I'm using Text.ParserComb inators.Parsec and Text.XHtml to parse an input like this:


    Code:
    this is the beginning of the paragraph --this is an emphasized text-- and this is the end\n
    And my output should be:

    Code:
    <p>this is the beginning of the paragraph <em>this is an emphasized text</em> and this is the end\n</p>
    This code parses and returns an emphasized element

    ...
    See more | Go to post

  • kenatessence
    started a topic php xml parsing problem
    in PHP

    php xml parsing problem

    Hello,

    I am working on making a flash site dynamic by using XML. I have already made the flash site read the XML perfectly, but i now have to make a back end where the owner can go in and post new news or edit his articles.

    I put a tinymce on the page and want to basically store HTML inside an XML tag.

    so basically i would have something like
    <article><fon t size="10px">thi s is news</font></article>...
    See more | Go to post

  • double quotes in memo field causing parsing issues

    Hi,

    I am developing a DB that imports a CSV file from a commerce site. The file is a CSV file with double quotes to identify text. In this file, there is a memo field where people occassionally use double quotes. This causes the parsing to corrupt b/c the csv/text file generator is confusing this with the end of the string.

    I am aware that using two double quotes is a way to get around this but i am not able to get...
    See more | Go to post
Working...