95 Topics

Member Avatar for
Member Avatar for LucianAdamson

Hey all! I am trying to write a piece of code that will replace one of my system files on reboot with a new version of that file. Hopefully someone out there has some experience with this as I am stumped at the moment. Using: VB.NET 2012 Using MoveFileEx Public …

Member Avatar for LucianAdamson
0
446
Member Avatar for biscayne

I have a flat file (template) where I want to replace variables based upon value in another file (csv). Variables in them template are named %VAR_Xz% The values are in the csv file and X is field 0 of each line and y field 1 and up. Example: Badidas, 13.00, …

0
108
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to replace a cell value from one excel spreadsheet and save it as another spreadsheet but with the replaced cell value. Please Help

Member Avatar for joshl_1995
0
1K
Member Avatar for jamojo

Hello Everyone. Can you please advise how can I replace a string from this "[" to "]" this character and replace it with blank string? I believe I will use str_replace but I am having a hard time doing this. The quick brown fox jumped over [caption id="attachment_223" align="alignleft" width="900"] …

Member Avatar for jamojo
0
161
Member Avatar for zeeters

I have to write a program that takes a word from the user and replaces it if it is in the text file with another word given by the user. Then takes that input and writes it to a new file. The only problem is, I have to do it …

Member Avatar for zeeters
0
3K
Member Avatar for baig772

I have a search form, in which a user enters a keyword and it displays the results with the keyword in description as highlighted text, for highlighting, i have used another class on that keyword. problem is that, if there is a keyword in some hyperlink or in some <img> …

Member Avatar for baig772
0
225
Member Avatar for Sanchixx

I am makeing a comment system, i have a string where i remove html code: `$area = stripslashes(htmlspecialchars($area));` But i replace text sometimes by code, but it doesn't work because of the code above: $txtSmileys = array (':-)', ':-('); $imgSmileys = array ('<img src="smiley.jpg" />', '<img src="smiley-sad.jpg" />'); $text = …

Member Avatar for Sanchixx
0
181
Member Avatar for ggeoff

Hi I have, almost in a panic, realised that I have some hard drives that need to be replaced as they are 6 years old. Although I have had no issues with them I thought replace them before they fail. It still seems a shame that a working hard drive …

Member Avatar for sheikhali449
0
1K
Member Avatar for guilherme.carvalho.9250

Hello to everyone, Im a beginner in vb.net and currently Im developing a "reminder" program, the user inserts a task that he as to do, the date and the time to be remimbered! Im saving the task in a txt file like this, "Make dinner,Reminder,24-07-2012 18:31:00", but line by line, …

Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for ramya_nd

do you know how can i put a hyphen (-) after 3 digits of a number(starting from the end) in php? example: the number 9787897878 to be shown as 978-789-7878??

Member Avatar for ramya_nd
0
120
Member Avatar for Jack5848

so basically for my uni work i have to create an applet that gives a word pattern for a particular sentence, ie '1 am a man' would give 2, 1, 1, because there are 2 1 letter words, 1 2 letter word and 1 3 letter word. the harder part …

Member Avatar for JamesCherrill
0
161
Member Avatar for pritaeas

The `ReplaceStrings` function replaces all strings in `APatterns` found in `ASubject` with the value in `AReplacement`. As an example, I added the `RemoveStrings` function which replaces everthing with an empty string, thus deleting all strings found. Usage examples are in the XMLDoc comments. A good test will be to rewrite …

Member Avatar for pritaeas
0
263
Member Avatar for spideyprasad

I need code for iframe for the replacement of frameset. My frameset code is <frameset rows="14%,*"> <frame src="logout.html" scrolling=no> <frameset cols="25%,75%"> <frame src="Players Name.html"> <frame src="Dhoni.html" name="secondframe"> </frameset> </frameset> I need it in iframe. I cant able to nest iframe which i did in frameset. Is it possible to write …

Member Avatar for JorgeM
0
284
Member Avatar for iFrolox

Well i'll try to be clear as possible, i'm making like an account organizer (helper/tool) w.e you wanna call it, and for example i have 10 accounts. I want to delete account #5 (They are array), what i need it to do is move account #6, 7, 8, 9 & …

Member Avatar for iFrolox
0
2K
Member Avatar for dwhite12

>I need to take a list of files and remove a '.2' from a line in each file. I then need to rewrite the file without the '.2'. Using the code below I am >able to take a single file and do exactly what i need to but when trying …

Member Avatar for Lucaci Andrew
0
246
Member Avatar for valestrom

Basically what I want to do is when the user browses and finds the file he wants to add the extension to I use a button click to add a .NOPE extension or something like that. I have no idea how to get it to find the end of the …

0
139
Member Avatar for kjeu_kach

How to replace local file path to insert url link [download.php](https://github.com/apps-vn/download.php/blob/9ffc7c80efe57ad8d29f10897f04155c463778e3/.gitignore) // Free Downloads if (isset($_GET['free'])) { $row = $android->getFreeDownload($_GET['free']); if ($row) { $fname = basename($row['filename']); $file_path = ''; $android->fetchFile(BASE_DIR, $fname, $file_path); $fsize = filesize($file_path); $fext = strtolower(substr(strrchr($fname, "."), 1)); if (!file_exists($file_path) || !is_file($file_path)) { redirect_to(($core->seo == 1) ? $core->site_url …

Member Avatar for veedeoo
0
370
Member Avatar for asadarun

Hi, I need a perl function that will check the following in a file, modify if only the first two columns match , and if not found in the file, insert the values. The file is like below **lookup.txt** InstanceName1::DomainName1::Server1 InstanceName1::DomainName2::Server2 InstanceName2::DomainName3::Server3 InstanceName2::DomainName4::Server3 ... ... The perl function needs to …

Member Avatar for asadarun
0
1K
Member Avatar for heinlein_

Hi, I have a little problem. I want to replace words in a text, but only 'whole words'. That is, I'm looking for a method that changes "cat", but not "catfood". I know how to do it using re.sub, like this: re.sub(r'\bword\b', 'change', text) Only problem is, I'm using a …

Member Avatar for heinlein_
0
7K
Member Avatar for FelineHazard

Hi all, I am doing some c++ exercise about operator replacing. I have successfully replaced the + (plus) operator to work on a user-defined class. I understand these operators are order-sensitive: need to replace the operator for (class+int) and for (int+class). Thus, creating **two** replacements that do exactly the same. …

0
147
Member Avatar for winky

Been a long time since I've logged in and had a question, but here goes nothing! I have a file that is not delimited in any way, but I need to replace a particular column character from a space to a alphanumeric value on every other line starting at line …

Member Avatar for winky
0
460
Member Avatar for choosenalpha

Hi All, I'm fairly new to Java. I have a question involving the Replace Method. Is there, any way I can use the replace method to change a string that results in: Helle, Werld; to get it to result to Hello, World using the replace method. I have seen the …

Member Avatar for TrustyTony
0
216
Member Avatar for aldrin_ison1

Hi! I'm new to C and I'm having some problems in my program. It opens a .txt file then copies this to another .txt file but replaces a certain word with another word. It uses command line arguments. Example: //inside text.txt love is patient love is kind ... ./change love …

Member Avatar for histrungalot
0
452
Member Avatar for scaiferw

Working in Word 2010, I have a long document with many formatting changes to be made. To start with, throughout the document I'd like to replace "Click OK" with "Click [B]OK[/B]", so the OK will be bold but not "Click". I also need it to be case insensitive, as some …

0
114
Member Avatar for magicmarkuk

Hello again I have two questions regarding the REPLACE command. The first query I am running is [CODE]update phpbb_posts set post_text = replace(post_text, '[del]', '[ b][ i]') update phpbb_posts set post_text = replace(post_text, '[/del]', '[/i][/b]')[/CODE] Note - in the above code I have had to add a space before the …

Member Avatar for smantscheff
0
271
Member Avatar for Virangya

hi, i'm developing this small seo component, i want to know how it should be done. now i'm writing seo meta tags and other tags search engines looking into the page. i'm getting the content of the page and look for the previous set of say, keywords and replacing them …

Member Avatar for Virangya
0
129
Member Avatar for ShinyEdge

Hi, I have a problem with jquery callback. The callback is executed before the fadeIn animation is completed. What im trying to do is, I want to replace an existing image with a new image and resize the new image to a specific size. [CODE] var filepath = "images/test.jpg"; $('#imagewrap').css('background-image', …

Member Avatar for ShinyEdge
0
217
Member Avatar for faezshingeri

Hi, I have a replace function which replaces all the occurences of the string into another file. But when I use the replace function multiple times... it replaces the string which was passed in the last call only and all the previous replacement does not happen. Below is the code …

Member Avatar for faezshingeri
0
218
Member Avatar for dwayned

Hi Guys, I have imported a CSV file into the database and i want to write some functions to ensure that when data is loaded in that all spaces are removed from certain columns. For Example: In the Phone No column the numbers can appear as follows 07712345678 077 1234 …

Member Avatar for dwayned
0
166
Member Avatar for friknos

hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need …

Member Avatar for friknos
0
134

The End.