javascript - Find a (substring) inside a string -


I am working on a search function which can show partial results according to your search variables

For example, we are searching for a word " abcde "

We have a record of stars

"echopesaiya"
"
"abcfeqs"
"cdeeqwee"

Then the result "Uh * ABC * sdwe" - ewq * < Em> abcde * "-" * ABC * feqs "-" * cd * eqwee "

Is it possible to use Jquery Is doing Add!

Searching for strings in strings is done using regular expressions.

RegEx can be used in javascript as well as in other languages. It is universal.

RegEx is roughly used for data validation, but substrings Can also be used for search.

Internet on this topic And there are plenty of guides.

I found one for you. Take a look :)


Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -