Questions tagged [contain]
214 questions
0
votes
1 answer
Find Where string contains keywords
User inputs some keywords that he wants to get a notification, when a new post title contains these. Here is what I'm currently trying:
LOCATE( LOWER( REPLACE( `app_notif_keywords` , ' ', ',' ) ) , LOWER( REPLACE( 'Visiska tamsa | Pitch Black…

Gintas_
- 4,940
- 12
- 44
- 87
0
votes
1 answer
LinqJs Perform "WHERE IN (Value1,Value2)" Queries
I am using linq js to perform WHERE IN (Value1,Value2) but getting an error x.id.Contains is not a function
$http.get('data.json').then(function(response) {
var dta = response.data;
$scope.hdr = Enumerable.From(dta)
.Where(function…

Nisar
- 5,708
- 17
- 68
- 83
0
votes
1 answer
Chrome Extension: content_scripts - matches - contains
I looked at match patterns documentation, but can't find a way to have matches to contain a text.
E.g. how to make it work only for links that contains test/22?
Tried:
"content_scripts": [
{
"matches": ["https://*/test/22*"]
}
}
and…

AmazingDayToday
- 3,724
- 14
- 35
- 67
0
votes
5 answers
Find last index of string in string array containing a value
In my program I have a text, which I'm splitting up into an Array of lines to modify the lines separately.
For one modification I need to find the last index of a value in the text, to insert a new value in the line below.
Example:
text=["I like…

user2550641
- 317
- 4
- 18
0
votes
1 answer
c# windows form How received webbrowser contain ":" character full line in listbox?
I am want to scrapped webbroser to ":" all line.
If finding : then scrapped full line with all line from the browser area.
below code I am trying but not getting any result pls check & give me solution.
if…
0
votes
1 answer
Finding words in between other words
I have a sentence with varying lengths of words. The x in the sentence below represents random words, and the x1,x2, and x3 represent fixed words - words that don't change. Basically, x1 is x1, x2 is x2, and x3 is x3. First, I need to check whether…

jessica
- 1,667
- 1
- 17
- 35
0
votes
1 answer
cakephp2 can't display data from contain
I am developing a web app using cake php 2.
I have an issue while displaying data from 2 tables...
My models :

Marien
- 75
- 1
- 6
0
votes
1 answer
Chained contain and paginate in Cakephp
Two Languages belongs to Lset, Lset HABTM Translator
It is defined as follows:
Translator:
var $hasAndBelongsToMany = array(
'Lset' => array(
'className' => 'Lset',
'joinTable' => 'lsets_translators',
…

kkaczmarczyk
- 11
- 3
0
votes
2 answers
If a string contains the same value as cells k4:k7, give true
This is what I tried but this doenst work:
=ISNUMBER(SEARCH($K$4:$K$7;L4))
I want to check if E4 contains the same string as K4 thru K7. Is this somehow possible? I know that this is possible: =ISNUMBER(SEARCH(K4;L4))

wouter
- 359
- 4
- 15
0
votes
1 answer
How to see if first half of string contains a specific word
I'm a high school student beginning in java and I don't know how to print something if the first of half of a string contains the word "the" and how to print something different if its in the second half of the string and if its not in the string…

Edan Toledo
- 9
- 1
0
votes
1 answer
Checking if a string contains a specific word - PHP
I need to only output true if the sentence contain a specific word.
I know I can use the code below to check if a string contains a word and it will output true.
$a = 'How are you?';
if (strpos($a,'are') !== false) {
echo 'true';
}
else{
echo…

Renots
- 15
- 5
0
votes
1 answer
how use conditions in sub query Cakephp while using contain behaviour
i'm trying to access only those cities where country id = 2 and city id = 5
$this->Country->find('all', array(
'conditions' => array('Country.id' => 2),
'contain' => array(
'City' => array(
'conditions' =>…

coder
- 156
- 3
- 23
0
votes
1 answer
Cakephp: Contain Behavior, conditions on array of array
I have a problem with contain behavior conditions and empty array.
There is part of code:
$menusTopUser = $this->Menu->find('all', array(
'contain' => array('TemplateRegion', 'Language', 'Item', 'MenusUserGroup' => array('conditions'…

Dvd74
- 53
- 12
0
votes
1 answer
CakePHP 3.0 - How do I return data from a deeper contain in the correct format?
I'm working with a user's profile that has a state id in it, so I have this query:
$user = $this->Users->find()
->where(['Users.id' => $this->Auth->user('id')])
->contain(['UserProfiles' => function ($q) {
return $q
…

Isaac Askew
- 1,281
- 2
- 17
- 30
0
votes
2 answers
.contains() method not working -- finding an int in array Java
I have been looking for hours, all over the internet and SO, but cannot find anything that I understand! ( Very new at Java )
Upon compiling, it cannot find symbol of the contain method.
Here is the code:
public class LotteryTicket {
private…

Nicole I.
- 87
- 1
- 3
- 10