Top "Substr" questions

A function/method that returns part of a string.

PHP get everything in a string before underscore

I have this code here: $imagePreFix = substr($fileinfo['basename'], strpos($fileinfo['basename'], "_") +1); this gets me everything after the underscore, but …

php string substr strpos
How to split a CLOB object using , and : delimiter in Oracle into multiple records

I have a CLOB object sample as shown below. I want to first split this by using delimiter "," and save …

regex oracle substr oracle12c regexp-substr
substr() with negative value not working in IE

EDIT:I've changed the title, because the issue had nothing to do with IE image.load() firing - my substr() …

javascript onload explorer slice substr
Smarty substr string skip first characters

The variable $siteroot contains a string that looks like: http://www.example.nl/folder/ To get the part http://www.…

character smarty substr skip
PHP limit text string NOT including html tags?

Here's what's NOT working for me: <?php $string = 'I have a dog and his name is <a href="…

php substr
Replace the last comma with an & sign

I have searched everywhere but can't find a solution that works for me. I have the following: $bedroom_array = array($…

php substr implode array-filter
PHP / Regex: extract string from string

I just started using PHP and hope someone here can help me with this. I am trying to extract a …

php regex str-replace substr strstr
Javascript substr(); limit by word not char

I would like to limit the substr by words and not chars. I am thinking regular expression and spaces but …

javascript jquery substr
Substring of a std::string in utf-8? C++11

I need to get a substring of the first N characters in a std::string assumed to be utf8. I …

c++ c++11 utf-8 substr stdstring
What is the difference between slice() and substr() in JavaScript?

Can I ask what the difference is between string object slice() and substr() in JavaScript?

javascript slice substr