Activity Stream
48,167 MEMBERS
61075 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10

Hybrid View

Funny Help in replacing lines in various... 19th Nov 2011, 02:56 PM
masterbator you can do this easily using sed on... 19th Nov 2011, 04:15 PM
soft2050 You can try the tool here: OR... 19th Nov 2011, 04:21 PM
Funny @master- Im on windows env. :( ... 19th Nov 2011, 05:42 PM
soft2050 Set the search mode to regex... 19th Nov 2011, 05:45 PM
Lock Down Ok if they are all on a single line... 19th Nov 2011, 06:13 PM
nba517 nice and helpful;) 19th Nov 2011, 06:25 PM
Funny Thanks a lot Soft. That worked.... 19th Nov 2011, 06:19 PM
Funny @ Lock down- I figured it out.... 19th Nov 2011, 06:25 PM
Lock Down You are all welcome. :) 19th Nov 2011, 08:16 PM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Member
    Ok if they are all on a single line ending in the R001-XXXX

    then change the find string to :
    Version- (.*)
    the replace string with :
    Version- 2.1
    And be sure to choose folder and include sub folders if needed and filter *.php .
    Then click the regular expression radio button at the bottom.

    PS Always do a find file alone before adding the replacement text
    Lock Down Reviewed by Lock Down on . Help in replacing lines in various files Guys I have to do a particular work. I don't know how to go about it. Kindly help! :) The work is that- Suppose I have 100 (.php) files, all files containing a line like- File one- Revision Version- R001 File two- Revision Version- R002 and so on. I want to replace the whole line in all files with- Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Quote Originally Posted by Lock Down View Post
    Ok if they are all on a single line ending in the R001-XXXX

    then change the find string to :
    the replace string with :

    And be sure to choose folder and include sub folders if needed and filter *.php .
    Then click the regular expression radio button at the bottom.

    PS Always do a find file alone before adding the replacement text
    nice and helpful

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Difference between these two lines of code for Wordpress
    By LuDo8 in forum Web Development Area
    Replies: 2
    Last Post: 22nd Jul 2012, 10:58 AM
  2. [VPS] XRumer VPS Servers - 1000 MBPS Lines
    By XRumerGeek in forum Archive
    Replies: 3
    Last Post: 13th May 2012, 12:14 PM
  3. Some Amazing English Lines
    By anaksr in forum General Discussion
    Replies: 3
    Last Post: 27th Jan 2012, 11:26 AM
  4. Php replacing characters !
    By softleaks in forum Web Development Area
    Replies: 8
    Last Post: 30th May 2011, 02:42 PM
  5. Help , Some malware lines automatically adding to my scripts
    By rajeshjsl in forum Webmaster Discussion
    Replies: 10
    Last Post: 7th Feb 2010, 12:01 PM

Tags for this Thread

BE SOCIAL