Questions tagged [contain]
214 questions
3
votes
3 answers
How to search for a string and similar word in a text?
I have to lookup for a word "age" and similar word in a text file.
I have following sentence :
18 years of age
man aged 51
man ages between 25 to 50
between 5 to 75 years of age.(with dot)
between 5 to 75 years of age, (with comma)
agent name is…

Shashi
- 12,487
- 17
- 65
- 111
3
votes
1 answer
ArrayList .contain giving strange output
Can anyone explain this? I have an arrayList with strings in. I'm using !arraylist.contain to make sure I don't add duplicates. In the code below I display everything in the arraylist, and then check if the same value does not exist in the arraylist…

Code Vader
- 739
- 3
- 9
- 26
3
votes
1 answer
Cakephp 2.0 weird array_merge error when using contain
I have a weird error when using contain to limit my data to only what I need. Here is my contain
$this->Movie->contain(array(
'Review' => array(
'fields' => array('id', 'title', 'spoilers', 'body', 'created'),
'User'…

Dakuipje
- 91
- 5
2
votes
3 answers
JQuery : contain one of the following words
On this line I'm trying to select 's that contain either one of these words but doesn't contain an image but it's not working, basically when I use it on the page, the page is blank.
$('#SubscribersManageList tr:contains("CIUDAD EVITA"),…

sebas
- 722
- 1
- 6
- 21
2
votes
4 answers
How can use :contains() Selector to determine the object has a certain keyword when it is clicked?
How can use :contains to find the object has a certain keyword when it is clicked?
» Read More
$('.click').click(function() {
if($(":contains('More')", this)) alert('1');
});
I get the alert whenever it…

Run
- 54,938
- 169
- 450
- 748
2
votes
2 answers
Gremlin: how do I find vertices whose properties *contain* a certain values
Imagine I have vertices with properties whose values are lists, e.g:
g.addV('v').property('prop',['a','b','c'])
How do I find cases where prop contains a certain value?
This seemed the obvious thing to try:
g.V().has(P.within('prop'),'a')
But it…

Edward Brown
- 109
- 3
- 8
2
votes
3 answers
Jquery find string in DOM and get his element
I there way to get element from DOM objects whitch contains some string? I am trying:
$( "*:contains('searchedString')" ).first().text( "test" );
or
$( "*:contains('searchedString')" ).text( "test" );
But this returns object so after…

Lajdák Marek
- 2,969
- 8
- 29
- 58
2
votes
2 answers
Checking if long is in array
I need to make sure that a certain long value isn't in an array. But for some reason, this isn't working...
!d.toString().contains(sq.toString());
I am sure I am getting something really backwards... but I can't figure out what!

Isaac Lewis
- 1,189
- 2
- 14
- 26
2
votes
1 answer
Str.Contains show only True values
I am using str.contains on a large dataframe and I need a way such that str.contains returns the records where my str.contains function is True. (the dataframe is several thousand lines long and I am looking for 8 true responses).
Thanks!
aa =…

Tony
- 221
- 1
- 4
- 11
2
votes
2 answers
Python pandas check if the last element of a list in a cell contains specific string
my dataframe df:
index url
1 [{'url': 'http://bhandarkarscollegekdp.org/'}]
2 [{'url': 'http://cateringinyourhome.com/'}]
3 NaN
4 …

UserYmY
- 8,034
- 17
- 57
- 71
2
votes
2 answers
Finding if a charter exist alone in a string C#
I want to find (in VS C#) if a string contains a character (for example '%') with no immediate repetitions.
For example "i have % alone and this is fine=>%%" . I want to find any string that contains a single '%' (even a couple times) regardless of…

havakok
- 1,185
- 2
- 13
- 45
2
votes
4 answers
Delete blank rows other than first column
I have written a macro to delete the row if it is a blank row or if in column B the cell contains the string XYZ. However, this macro can take a couple minutes to run if there is 200+ rows of data. Can anyone provide anything more efficient in VBA…

CH33
- 27
- 3
2
votes
1 answer
Jquery remove link with a certain label and the whole text after this link
For example:
Homepage text after link;
About text after link;
Contact Us text after link;
No problem: I can remove the link…

josoroma
- 1,887
- 2
- 14
- 16
2
votes
2 answers
Java String contains a special Char but not even one more Char
I am looking for every single URL, which is linked as "eye" in a html Document. I am using a regex pattern, because a simple contains is no solution at this point. So I got a pattern like this
Pattern:: href=\"(https?://)?[a-zA-z0-9?/&=\"+-_\\.#…

just_do_IT
- 91
- 1
- 2
- 10
2
votes
1 answer
how to align the arrow in menu item?
I have a menu like that and i have arrows if any item has child items,I use css content property to put arrows but i cant allign arrows to the end of the line.

CanESER
- 301
- 1
- 3
- 19