Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to Fetch Particular Substring from a String in iOS Swift3 Program
In this tutorial, we will see how to Fetch Particular Substring from a String in iOS Swift3 Program, but before moving on the mane case first of all let us see, What is String and Substring?
What is String
Strin...
Difference Between String or System.String and System.Text.StringBuilder
The difference between System.Text.StringBuilder and string or System.String
System.String and string keywords are the same, and you can use whichever naming convention you prefer. Essentially, string keyword is an alias for System.String clas...
Strings methods and properties in JavaScript
Hello Readers,
In today's post, we will discuss the String methods and properties in JavaScript. These methods and properties make easy to deal with strings.
Now let's have a look at methods and properties:
&n...
Creating a random string for multi purposes in Rails
As we know that in almost all web applications we have to ammend functionalities in which we need to create a random string.
This string can contain some alpha numeric characters, numbers, lower case alphabets, upper case alphabets and etc.
...
How can you get all the combinations of given string in php?
We can generate all possible combinations of given string. Here I made a function get_string_combinations($str), this function will accept string as a parameter and will give you all possible combinations of that string. In this function, I have ...
Convert string into barcode image
Hi Readers,
This blog includes a very simple example to convert a string into barcode image. As in one of my previous blogs I have explained how to read barcode with the help of iPhone camera and now in this blog I will explain how those barco...
Count the occurence of an interger in a string
Description:
Given a string of integers, count how many times that integer repeats itself, then return a string showing the count and the integer.
Example: countMe('1123') (count_me in Ruby)
Here 1 comes twice so <count>...
Converting all underscore connected letters to uppercase in php
In PHP if we want to replace all underscore connected letters to upper case then we can use the php function called "preg_replace_callback" .
For example if we have string "kp_o_zmq_k" then the output becomes "kpOZmqK&...
String in php
A string is sequence of character.
Every thing that is declared in a string will considered as a character.
Like abcd1234 is a string.
And when you add the string like 2+2 will give 22 not 4.
PHP string function
strlen()- It is used ...
Difference of String, StringBuilder and StringBuffer in Java?
Difference of String, StringBuilder and StringBuffer in Java?
String
1)String value are stored in dynamic memory (managed heap) and variables of type string keep a reference to an object in heap.
2)The character sequence stored in string...
C# : What's the difference between String and string.txt ?
string is an alias in C# for System.String. Hence internally, there is no difference. It's like int vs. System.Int32. Even though both are same it's generally recommended to use string any time you're referring to an object.
e.g. string place...
Converting string to symbol & symbol to string in rails
Ruby supports both Strings & Symbols.
String being mutable & Symbols being immutable cater to different needs.
We can convert String to Symbol & Symbol to String at any time.
To convert a string to a symbol, we can use inter...
Use of intern() of string in Java
String.intern() has a great importance in java. We can use String.intern() to deal with String duplication problem in Java. A string is said to be duplicate if it contains the same content as another string but has a different memory location e.g...
String Function In PHP
String function in php
To reverse a string
strrev- It is used to reverse a string.
<?php
echo strrev("Hello world!"); // outputs !dlrow olleH
?>
To search for a specific text in your string
strpos- it return the characte...
Remove some particular character from a String
Sometime, we need to remove or replace some particular character from a String.
Below is the method by which we can accomplish this. I am using replaceAll() method of the String.
replaceAll() have two parameter as an arguments. First one is t...
How to replace Case-Insensitive chars in a String in Java?
Sometimes we need to replace some characters with some other set of characters. To replace a Case-Insensitive chars from string you can use the below example:
package com.demo;
public class TestApps {
/*
*@param args
*/
...
How to split a String
Below I have written a code to split a string.
Suppose we have a string name imagePath and we are going to split by "/" by using split method in java.
String delimiter = "/";
String[] img;
if (imagePath.contains("/")) {
img = i...