Questions tagged [text-search]
202 questions
-2
votes
2 answers
Search a string for any occurence of a word in a list of strings
I want to know how, in C++, to search a string for the first instance of ANY of a list of strings. A kind of full-word version of std::string::find_first_of(): "Searches the string for the first character that matches any of the characters specified…

Kyle B
- 63
- 7
-2
votes
1 answer
Error in Lucene text Search
I'm new to text search and I'm studying some examples related to lucene. I found one of the example from this link. http://javatechniques.com/blog/lucene-in-memory-text-search-example/ I tried it in my eclipse IDE. But it gives some errors. I…

user3774248
- 11
- 5
-3
votes
1 answer
JS search in array
Originally, problem is that I must get some notification, when term (city name in project), entered by user in JqueryUI Autocomplete not matching with anything in collection (entered "My Sweet City" and it doesn't match [Moscow, New-York, Beijing]).…

Arman Hayots
- 2,459
- 6
- 29
- 53
-3
votes
2 answers
Search a Number pattern
I want to search a phone number from a whole sentence. It can be any number with a pattern like (122) 221-2172 or 122-221-2172 or (122)-221-2172 by help of PHP where I don't know in which part of the sentence that number is exists or I could use…

Soumya
- 425
- 1
- 6
- 28
-4
votes
2 answers
Search textbox using checkbox in Javascript
I am trying to do a text-search using a checkbox. For example, if the person selects the check box it will display the word/letter the user has entered into the search box(this word/letter will be highlighted). Say I enter "the" it will search for…

user3444609
- 15
- 1
- 8
-5
votes
1 answer
Finding 9 characters before a particular string in Python
For example here I have a line '2020-08-12 13:45:04 0.86393 %contrastWeber' and I need to extract 9 characters before ' %contrastWeber' string in text file.
So, here my answer will be '0.86393'. I don't understand how to do it in Python? please…

Mohit Gupta
- 1
- 2
-6
votes
1 answer
Search text file
I am new to programming and I wonder how to make a search in a text
as follows.
I have a text with the following content
I won today as if he knew the truth Today I am lucid as if to die And
had no more kinship with things
What I want and search…

Shalter
- 1