Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
eregi_replace
- Page 1
Re: Error LNK1104 when debugging
Programming
Software Development
2 Weeks Ago
by toneewa
I've seen this problem before with the .rc and resource.h files, when changing icons. Backup what you have. I remember I had to remove the resource files from the project, and the additional resource (e.g., resource1.h, resource2.h) generated headers from the project folder, when adding a new icon to replace the default. It's probably easier…
Need a small footprint desktop with decent power
Hardware and Software
1 Month Ago
by wolfyshoo
Hey everyone, My current desktop tower is getting old and frankly, it's huge and noisy. I'm looking to replace it with something much more compact that can still handle my workflow, which is mainly web development (multiple browser tabs, code editor, local server), some graphic design work (Figma, Affinity Designer), and occasionally light 1080p …
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
by lennyli
> Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on…
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by geekinformatic
Hey! If you're using the CakePHP framework, you can connect to the Pinterest API with cURL and OAuth integration. Just follow Pinterest’s API docs for endpoints and token handling.
Re: Custom Media Server
Hardware and Software
Linux and Unix
2 Months Ago
by Vince_6
I used Plex and a Mac for years to stream to my TV. When I switched to linux, PLex ran but couldn't find my media directories. I finally found a product called Emby. It has a server that runs and aps for many different divices. It even has one for my FireTV. Works great.
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
2 Months Ago
by Pelorus_1
Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever.
Re: Need a small footprint desktop with decent power
Hardware and Software
1 Month Ago
by Dani
Not too long ago, I ditched a suuuuuper expensive ~10 year old Dell Precision workstation with like 64 cores or something crazy, multiple video cards, dedicated RAID controller, etc. for a much less expensive M1 Max Macbook Pro. The macbook outperformed the Dell for everything I did by far.
Re: Need a small footprint desktop with decent power
Hardware and Software
1 Month Ago
by trcooke
I'm a developer too and 14 years ago I bought an entry level MacBook Air and honestly it was probably the best laptop I've ever bought and I used it for development for years and years. It used to creak a bit if I ran more than one instance of IntelliJ, but other than that it took everything I threw at it. I have since replaced my own laptop, but …
Re: replace $v in a string with a random replacement
Programming
Web Development
12 Years Ago
by tpickett
$replace is the array. and it would be structured like this: $replace = array( 'racer', 'race car driver', 'racing', 'race team' );//array to replace $match with $search = "text"; //keyword to match n = "3"; //number of times to replace in artcle $str = '…
Re: replace part of field with FIND IN SET
Programming
Web Development
11 Years Ago
by pritaeas
Replace `replace1` with `table1`, same for 2.
Re: Replace page content jquery - tricky question
Programming
Web Development
12 Years Ago
by JJenZz
Replace your `$('body').ready(` with `$(document).ajaxStop(`
Eregi Error and preg_match() warning
Programming
Web Development
15 Years Ago
by D4n1sD
I get an error that eregi() function is deprecated and when I searched for solution which worked for the most to replace eregi() with preg_matc() I get this error Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in C:\wamp\www\New folder\modules\mod_rokajaxsearch\helper.php on line 112 help me what to …
Re: Eregi Error and preg_match() warning
Programming
Web Development
14 Years Ago
by bailaba
Fatal error: Uncaught exception 'Exception' with message 'Warning: eregi() [<a href='function.eregi'>function.eregi</a>]: REG_EMPTY in /home/.../www/.../produit/produit_associe.php on line 422' in /home/.../www/app/code/core/Mage/Core/functions.php:245 Stack trace: #0 [internal function]: mageCoreErrorHandler(2, 'eregi() [<a hre...',…
Re: Eregi Error and preg_match() warning
Programming
Web Development
15 Years Ago
by D4n1sD
[CODE]<?php /** * RokStories Module * * @package Joomla * @subpackage RokStories Module * @copyright Copyright (C) 2009 RocketTheme. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see RT-LICENSE.php * @author RocketTheme, LLC * */ // no direct access defined( '_JEXEC' ) or die('Restricted …
replace in time.asctime?
Programming
Software Development
16 Years Ago
by Seagull One
I'm finally getting my robot's software off the ground!:) (Although I'm giving my "artificial learning" program a rest for later). However, here's something I've been wondering how to do for quite some time now. I'm using the time module to allow my robot to tell me the time upon vocal command. However, when my robot replies, the …
Replace multiples substrings
Programming
Software Development
16 Years Ago
by blackcorner
Can anyone tell me if there is any function for replacing multiples substrings within a string. For instance we have this function call to replace multiple appearances of the same substring: [CODE=python] newLine = line.replace(';', '_') [/CODE] Here I replace all appearances of ';' with '_' But what I need is a function that receives a list …
replace newline with text
Programming
Software Development
14 Years Ago
by Martje
hey guys, I am using windows textbox (CLR) and i was wondering how i would replace a newline to a text. I know how to replace words, i use : textBox1->Text->Replace("first","second")); but how would i replace a new line? lets say my textbox looks like this : [QUOTE] test1 test2[/QUOTE] what i want to …
REPLACE syntax
Programming
Databases
13 Years Ago
by 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 b] and i] on line 1 as …
replace $v in a string with a random replacement
Programming
Web Development
12 Years Ago
by tpickett
I am developing a script that takes an article, searches the article for a "keyword" and then randomly replaces that keyword with an anchor link. I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop through and insert at the random location. So the first …
Re: replace $v in a string with a random replacement
Programming
Web Development
12 Years Ago
by LastMitch
**@tpickett** >$replace is the array. $replace = array('racer','race car driver','racing','race team'); //array to replace $match with $search = "text"; //keyword to match n = "3"; //number of times to replace in artcle $str = 'this is example text. it has text. wouldnt you like to replace …
Re: replace $v in a string with a random replacement
Programming
Web Development
12 Years Ago
by tpickett
you are correct the code is functioning that way currently. What i would like to happen is the 3 matches that get replaced, be replaced with differen't values(chosen at random from the $replace array). It currently outputs only 1 value for all 3 matches. my original attempt is this part: $searchCount = count($replace); $arrayNum = …
Replace Chars in String Problem
Programming
Web Development
16 Years Ago
by dev.cplusplus
Hi to all, hi have the following problem, I hope someone can help me. I need to replace special chars that appear in a string. [B]for example if I have the string:[/B] this- is a !string with special chars- [B]I want to receive[/B] this45 is a 33string with special chars45 * The numbers in the string are the ascii code of every char. I…
Re: Replace multiples substrings
Programming
Software Development
16 Years Ago
by jlm699
I don't know if there's a specific function to do it, but you could do a simple for loop like: [code=python] >>> l = 'hi;your,face.is;on,fire' >>> for c in [';',',','.']: ... l = l.replace( c, '_' ) ... >>> l 'hi_your_face_is_on_fire' >>> [/code] Or roll your own little function ie, [code=…
Replace Function, Please Help!!!!!
Programming
Software Development
16 Years Ago
by ChroNoS
I am trying to replace a string with another string in a string, but it is just not happeneing and is driving me crazy :@ and I am really confused :confused: Here is the snippet : [CODE] Dim strHex2 As String strHex2 = strHex.Text Dim Mystring2 As String Dim GG As Integer GG = FreeFile() Open ("d:\ImageHex.dat") For Binary As…
Re: Replace Function, Please Help!!!!!
Programming
Software Development
16 Years Ago
by Teme64
[QUOTE]one more question, is replace function case sensitive?[/QUOTE] By default, yes. Unless you have [CODE]Option Compare Text[/CODE] Here's an example [CODE]Dim str As String str = "ABC" str = Replace(str, "b", "x", , , vbBinaryCompare) [/CODE]results "ABC" and vbBinaryCompare is the default compare …
Replace Function
Programming
Software Development
16 Years Ago
by vuyiswamb
Good Evening All Am amazed that i cant use the Replace Function , its Probably the long that i had. i have the Following code [CODE] String Username = "Vuyiswa"; String Password = "secret"; String strBody = @"<p>Thank you for using !obooking System <br><br> …
Re: Replace Function
Programming
Software Development
16 Years Ago
by vuyiswamb
Thank you very much That worked like a Charm. Tell me what is the Difference between this [CODE] strBody.Replace("(Username)",Username); strBody.Replace("(Password)",Password);[/CODE] and your code that works like charm [CODE] strBody = strBody.Replace("(Username)", Username).Replace("(…
Re: Replace substrings in a string separately
Programming
Software Development
15 Years Ago
by vegaseat
A little playful ... [code]s = "knockknock" s2 = s.replace("knock", "bam", 1) print s2 s3 = s.replace("knock", "bam") print s3 s4 = s3.replace("bam", "knock", 1) print s4 # combine s3 and s4 action s5 = s.replace("knock", "bam").replace("bam", &…
Replace a value in a .ini file
Programming
Software Development
14 Years Ago
by GizmoPower
Hello. I am making a win app wich I can use to replace values in a .ini file. In this example.ini file I want to change the values after the = [QUOTE] location { x=0.35 y=0.56 z=-0.5 }[/QUOTE] I have label1, 2, 3 with text: "x, y, z" and want to get values after =. to texBox1, 2, 3 wich I then can replace and send back.…
Replace all % with %%
Programming
Software Development
14 Years Ago
by Legend32A
I am trying to replace all % with %%, because I want to write a string to a file using the fprintf_s function. Yet, I done this: [CODE]void replace(std::string& target, const std::string oldstr, const std::string newstr) { unsigned int x; while(x = target.find(oldstr), x != std::string::npos) { …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC