Search Result

Collapse
5 results in 0.0013 seconds.
Keywords
Members
Tags
pattern
  •  

  • How to find pharses stored in a file in another large text and replace them

    i have a text file say "list.text" containing phrase that is words and spaces, each phrase is in a new line.
    I have a large number of text files in the form of paragraphs of size app 2mb each,i need to find the phrases existing in the list.text in every file and replace them with phrases having _ in place of spaces.
    my code below shows error i cannot comprehend something related to memory.PLZ help


    ...
    See more | Go to post

  • davemc617
    started a topic Help with a Triangle Pattern in C language
    in C

    Help with a Triangle Pattern in C language

    Hi there; i'm a newbie when it comes to everything coding, and I have an assignment due tomorrow. The assignment is to code a triangle that begins with an '&' in the leftmost position of EVERY line, and in the case of line 1 the remaining 49 spots of the string will remain black. In the case of the remaining lines (2-32), I must print a '&' if the position above it on the previous line and the position above it and to the left of the previous...
    See more | Go to post

  • Rick Me
    started a topic How to search any pattern in a file.
    in C

    How to search any pattern in a file.

    Hi, I have data files that seem to have random data, but in fact have some structure in it.

    The data could be alphanumeric or numeric, all 16bits and different length (could be way big > 2Gb!)

    I’m use to program in compiler itself, C++ seem the next logical steps.

    My question:
    I need to find in those data files, any pattern of data.

    Ex:
    Data = ā€œ3A45g9doadgn-32639-58387yf32n02j34 8yb09nv0293jf9v 3Anv-425gn093mk2-0kf3ā€...
    See more | Go to post

  • Dormilich
    started a topic which OOP Pattern to use
    in PHP

    which OOP Pattern to use

    I’m not that good with OOP Patterns, so I better ask before I code in the wrong direction.

    the scenario is quite simple, I have a DB table which holds different types of text (designated by a type field), based on that type I need a class (I usually fetch the DB result in a class) to use different output templates.

    I’m pretty sure there is a Pattern for exactly that purpose, just which one? Strategy, State, Template...
    See more | Go to post

  • abz89
    started a topic Pattern Matching in C/C++
    in C

    Pattern Matching in C/C++

    I've learned a programming language in C/C++. I want to make a program which try to compare two arrays (random chars)and notify the user about the differrents. The program have to notify both the subtitution and insertion/deletion.

    Here are the examples :

    array 1 : xxxxxxxxx...(as standard)
    array 2 : xxxyxxxxx...

    the program will notify that,
    "there are subtitution in 4th"

    ...
    See more | Go to post
Working...