Top "Match" questions

A programming concept about finding results based on some kind of search.

Check whether a string matches a regex in JS

I want to use JavaScript (can be with jQuery) to do some client-side validation to check whether a string matches …

javascript regex match
Is there an R function for finding the index of an element in a vector?

In R, I have an element x and a vector v. I want to find the first index of an …

r indexing match vectorization
Java: method to get position of a match in a String?

String match = "hello"; String text = "0123456789hello0123456789"; int position = getPosition(match, text); // should be 10, is there such a method?

java string match
Check if string begins with something?

I know that I can do like ^= to see if an id starts with something, and I tried using that …

javascript string match
What is the difference between re.search and re.match?

What is the difference between the search() and match() functions in the Python re module? I've read the documentation (current …

python regex search match
Selecting data frame rows based on partial string match in a column

I want to select rows from a data frame based on partial match of a string in a column, e.…

r regex string match subset
How to test multiple variables against a value?

I'm trying to make a function that will compare multiple variables to an integer and output a string of three …

python if-statement comparison match boolean-logic
How can I add a string to the end of each line in Vim?

I want to add * to the end of each line in Vim. I tried the code unsuccessfully :%s/\n/*\n/…

regex vim replace match
how to check if string contains '+' character

I want to check if my string contains a + character.I tried following code s= "ddjdjdj+kfkfkf"; if(s.contains ("\\+"){ …

java string match
Jquery Value match Regex

I am trying to validate the input for E-Mail via JQuery: My JQuery <script> /* <![CDATA[ */ jQuery(function(){ $( ".…

javascript jquery regex match