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
Using GREP in Ruby
Working with GREP in Ruby
As we know that ruby contains a lot of built in modules, in which one of this is the Enumerable module. So before preceddingon what GREP is and How it works, first lets study a little info about Enumerable module...
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&...
Setting limit for the no. of words per record in solr while fetching
Fetching records in solr:
Once you have finished with indexing in solr, now you can perform search on your records with the help of queries.
Go to the url:
http://localhost:8983/solr/#/collection/query
There is box with q,&...
Phone number Regex Java
Regex for mobile number validation with prefix of '+'
^[+][0-9]{12,13}$
Regex for mobile number validation with optional '+'
^[+]?[0-9]{10,13}$
Use in Code:-
Pattern.matches("^[+][0-9]{12,13}$",mobilenumber);
Ha...
How to replace whole word with Word Boundaries in Java?
Sometimes we need to replace whole word with the word boundaries in a string. For this we use "\b" regular expression token which is called a word boundary. It usually matches at the start or the end of a word.
Example: You just need to place ...
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 query mongodb with like
In MySql you have normally used below code to find by like
select * from users where name like '%text%'
But in order to use like in mongoDb you have write the below code:-
You can use the actual regex object via MongoRegex
db.collec...
MongoDB : Regex
MongoDB - Regular Expression
In MongoDB if we need to find record with certain pattern, then we can use regular expression. It is also "like" query in SQL.
e.g. If we want to find user email matching with "findnerd.com" pattern.
db.colle...
Regex for website.
Regular expressions(abbreviated regex or regexp) are the sequence of characters to match different set of patterns
,strings or inpu...