Omgili - forum search, search forums  
  

Discussions about i'd replace

Displaying 1 - 10 out of 273,442 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I came to know PHP after Perl, so when I first found preg_* function I basically just used those. Later I read that str_replace() is faster when dealing with literal text. So my question is, can't preg_replace() be as efficient as str_replace() when the...
Started by on , 9 posts by 9 people.  
It is possible the PHP team could jigger preg....
Joe In theory yes, you're right.
Although trying to do the same in preg with str_replace, is actually slower if you're doing complicated stuff.
Use preg otherwise attempt with str_replace.
Okay, here's what I'm trying to do: I'm trying to use PHP to develop what's essentially a tiny subset of a markdown implementation, not worth using a full markdown class. I need essentially do a str_replace, but alternate the replace string for every ...
Started by on , 3 posts by 3 people.  
Personally, I'd loop through each occurrence of * or \ with a counter, and replace the character an asterisk, replace it with <em> , if it's odd then replace it with </em> , etc_replace('/\*([^*]+)\*/', '....
Using JQuery, I'm extracting the value from what is essentially a query box for some data in a MySQL database. Knowing that most users will use an '*' (asterisk) as a wildcard value and that MySQL uses the '%' character, I want to convert any asterisks...
Started by on , 3 posts by 3 people.  
Try: queryString = inputText.replace(/\*/g, '%'); Splitting a string into an array and then joining it back into a string is faster than regular expression replacements: queryString = inputText.split("*").join("%");.
Ask your Facebook Friends
Hi have the following content within an html page that stretches multiple lines <div class="c-fc c-bc" id="content"> <span class="content-heading c-hc">Heading 1 </span><br /> The Home Page must provide a introduction to the services...
Started by on , 3 posts by 3 people.  
From 'match everything except new line' to 'match everything': preg_replace('/(.*)<\/div>/s','abc',$body.
If this weren't HTML, I'd tell you to use the DOTALL modifier to change the meaning of .
I have a database table full of words. What I would like to do is to have a way to show the user in the html in the form of a hyperlink, any of these keywords. Kind of like you see on many forums now a days. When a keyword is noted in the html, it becomes...
Started by on , 3 posts by 3 people.  
And running a preg_replace on your HTML for each (just replace each word with an appropriate hyperlink of the word replacements interfere with your HTML, and you will also want to make sure you only replace not be a problem....
Is there a way to replace the call to Activator.CreateInstance() used inside NHibernate 2.0.1GA to construct the entities? Ideally I'd like to replace it with StructureMap.ObjectFactory.GetInstance().
Started by on , 4 posts by 4 people.  
Sprinkled in there, so, as far as I know, there's no simple option to override... .
The NHibernate internals may need to create a proxy object inherited from your domain class with Lazy loading code etc .
You can't do this easily with constructor injection.
If my string was: Business -- way's I'd like to turn this into: Business ways ie. replace NON abc/123 into ""
Started by on , 4 posts by 4 people.  
[] is a character class, [::] is posix class.
replace [[:punct:]] with '' (if Python supports that).
4.3l Block Crack - repair or replace? [Decided to Replace - Adventures begin] Bought this boat in July, and had it out a few times this summer, and it runs pretty good. However, not knowing much history, now that the boating season is over, I wanted to...
Started by on , 25 posts by 8 people.  
Answer Snippets (Read the full thread at iboats):
Replace it! Good luck! Re: 4.3l Block Crack - repair options, or ....
Re: 4.3l Block Crack - repair options, or replace? 4.3's are pretty common your local core supplier Repairing a cracked block, for a common block, is not a good option.
I'm looking to find / replace in alot of files and was wondering if anybody could recommend some good tools for Windows. I'd prefer them to be free. Thanks
Started by on , 6 posts by 6 people.  
Write the following in the file, #!/bin/sh # Sample script: replace chmod a+x replace-in-files....
Create a script file (say) replace-in-files.sh .
-type f) Use it to replace across files like this.
This, grep -Hn pattern $(find.
I'd like to replace " and - with "" nothing! make it disappear. s = re.sub(r'[^\w\s]', '', s) this makes all punctuation disappear, but I just want those 2 characters. Thanks.
Started by on , 6 posts by 6 people.  
Note that my syntax might be a little off - I'm still a python .
The string object has a replace method - str.replace(old, new[, count]) , so use replace("-", "") and replace("\"", "") .
Like this.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Mercruiser I/O & Inboard Engines & Outdrives
  • Server Fault
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost