Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
string-search
- Page 1
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
…To make things easier, I developed a chatbot to
search
this PDF document and answer my queries in natural …`StrOutputParser` object that you can use to directly retrieve
string
responses without using the `content` attribute, as shown in…knowledge base you want to
search
. 2. Based on the user query, use similarity
search
to find documents most …
Re: Need help with Lem-in Project
Programming
4 Weeks Ago
by toneewa
…. The Breadth-First
Search
(BFS) and Dijkstra…
string
][]int tunnels map[
string
]map[
string
]bool startRoom
string
endRoom
string
} type ant struct { name
string
room
string
} func bfs(start
string
, end
string
, tunnels map[
string
]map[
string
]bool) []
string
…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
…;), ("user", "Given the above conversation, generate a
search
query to look up in order to get information relevant… enter queries as console inputs. If the input contains the
string
`bye`, we empty the `chat_history` list, print a goodbye message…
Re: Chrome generates AI content
Community Center
1 Month Ago
by rproffitt
https://blogs.microsoft.com/blog/2023/02/07/reinventing-
search
-with-a-new-ai-powered-microsoft-bing-and-edge-your-…. Use “before:2023" at the beginning of your
search
string
. You get a completely different set of results which won'…
String Search
Programming
Software Development
14 Years Ago
by kobalt
Hello All, I'm having trouble with a little
string
search
. My code downloads a webpage that contains a table of …;/tr>[/CODE] This is read in to a
string
from a streamreader:
string
Result = sr.ReadToEnd(); I am looking to return… letter id eg. AAC) Code I have so far: [CODE]
string
regMatch = "<td>" + Name + "</…
String search methods indexOf and lastIndexOf
Programming
Software Development
15 Years Ago
by enitsirc
I need help on this: Write your own versions of
String
search
methods indexOf and lastIndexOf. Hope you could help.thanks.
Re: string search
Programming
Software Development
12 Years Ago
by Adak
Use fgets() to take in at least one line of text, at a time, into your buffer. Then use strstr() to look for the target word, in the buffer. You don't want to do this, char by char. To make it more efficient still,
search
for
string
search
in Wikipedia, and read up. The best way, depends on how long your target word is.
Re: String Search
Programming
Software Development
14 Years Ago
by kobalt
….Text += share.ToString() + Environment.NewLine; } } } private Share Find(
string
input,
string
Name) {
string
pattern = @"(?:<tr.+?<td>)(?<Name…Text = share.ToString(); if I don't check the
Search
box, txtOutput.text displays nothing? However, I will continue…
Re: String Search
Programming
Software Development
14 Years Ago
by kobalt
…().GetResponseStream(), System.Text.Encoding.UTF8);
string
Result = sr.ReadToEnd(); sr.Close(); webResponse.Close(); //need to
search
for text "<td>… the streamreader to read the code into a
String
and then try and
search
using the same solution as in my code…
Re: String Search
Programming
Software Development
14 Years Ago
by Geekitygeek
… input is searched for the abbreviated name in the
search
box and if it isnt then it outputs every…txtOutput.Text += share.ToString() + Environment.NewLine; } } } private Share Find(
string
input,
string
Name) {
string
pattern = @"(?:<tr.+?<td>)(?<Name…
Re: String Search
Programming
Software Development
14 Years Ago
by kobalt
… when I click on the Go button (with chk
Search
checked) I get a NullReferenceException at txtOutput.Text = share….ToString(); if I don't check the
Search
box, txtOutput.text displays nothing? However, I will continue… I've solved the issue, the
string
pattern needed \r\n characters. [CODE]const
string
pattern = @"(?:<tr.+?\r\…
Re: String Search
Programming
Software Development
14 Years Ago
by jbisono
…;<tr.*?>",RegexOptions.IgnoreCase); foreach (
string
strLine in arrLines) {
string
[] strCol = Regex.Split(strLine, @"<…;]*>", ""); if (test == find) {
String
Rate += Regex.Replace(strCol[i + 1], @"<[^>…
Re: String Search
Programming
Software Development
14 Years Ago
by kobalt
…, however, when I removed the return carriage \r from the
string
pattern I get the intended result i'm looking for…. [CODE]
string
pattern = @"(?:<td>)(?<Name>" + Name…
Re: String Search
Programming
Software Development
14 Years Ago
by Geekitygeek
…\n' OR '\n' any number of times (non-greedy) [CODE]
string
regex = @"(?:<tr.+?(?:\r\n|\n)*?<td>…] 3) Use options to make the '.' match line feeds: [CODE]
string
regex = @"(?s:(?:<tr.+?<td>)(?<Name…
Re: String Search
Programming
Software Development
11 Years Ago
by jemware.waseem
… the data base with specific cloumn this tabale is a
string
message in my mathod i wnat to parse the tale…
Re: String search in a file
Programming
Software Development
13 Years Ago
by Narue
…]: What's the point of putting this
string
search
code in a loop if you terminate on…EXIT_FAILURE; } /* Prepare the
search
string
*/ /* Note: We're prompting for a
search
string
rather than taking it as a…of this program: perform a file-based
string
search
*/ printf("The
search
string
'%s' was %s\n",…
Re: string search....can i add an index? help..
Programming
Software Development
15 Years Ago
by skisky
… complicated way to do this. I need to
search
a
string
array for a
string
that was input, and either return the index… where the
string
was found, or report that the
search
was unsuccessful. Right now, the input (being searched for) is stored as
string
search
;
Re: string search....can i add an index? help..
Programming
Software Development
15 Years Ago
by skisky
… not sorted. i have a
string
search
; that stores the input of the user.
search
contains the
string
that needs to be found in… the program to provide what element of the array the
string
was found in, (providing it exists). It looks like the…
Fuzzy string search or searching for misspelled words
Programming
Software Development
14 Years Ago
by sjcomp
Hello, I would like to find out if there is a c++ library that supports fuzzy
string
search
. If I have a list of words such as: hello, there, cool. But I
search
for 'Helo' I would get Hello. I assume this is a solved problem for spell checkers. Anyone can suggest a ready to use library for that purpose? Thank you.
Re: String search methods indexOf and lastIndexOf
Programming
Software Development
15 Years Ago
by stultuske
…". try to understand what indexOf() and lastIndexOf() do: a
String
- object can be seen as an array of chars, so… the given substring within the original
String
. for instance: [Code=Java]
String
ob = "the first
String
"; System.out.println("place…
Re: string search
Programming
Software Development
12 Years Ago
by maninaction
[CODE]#include <stdio.h> #include <
string
.h> #include <stdlib.h> #include &…int word_match=0; const char* substring ="window";/*
search
word*/ int i=0; char word[15];/*to save the…); return EXIT_SUCCESS; }[/CODE] use this code with more
string
functions or you also with the famous techniques and algorithms…
string search
Programming
Software Development
12 Years Ago
by D33wakar
…one. [CODE] #include <stdio.h> #include <
string
.h> #include <stdlib.h> #include <ctype…*/ int word_match=0; const char* substring ="window";/*
search
word*/ int i=0; char word[15];/*to save the…m looking for suggestions to make it a real world
string
searching program. Note:Toggle plain text and copy it …
Re: string search
Programming
Software Development
12 Years Ago
by D33wakar
…] #include <stdio.h> #include <
string
.h> #include <stdlib.h> #include…FILE *txt_file; const char* substring ="in";/*
search
word*/ int word_match=0,l=strlen(substring); char …); return EXIT_SUCCESS; }[/CODE] strstr returns every
string
that matches the substring. For example, here …
Re: string search
Programming
Software Development
12 Years Ago
by Adak
… a match. If match doesn't equal the target word
string
length, then you have no match. It's not the… fastest
string
searcher, but it is perhaps the easiest, and with today… with it all from memory - especially if you want to
search
for more than one target word. So far, I don…
Re: string search
Programming
Software Development
12 Years Ago
by D33wakar
… the program to find a "word", that is
string
between spaces or punctuation signs . Such as, "I [COLOR… code for dra wing shapes in the window. If the
search
word was "drawing", it would return "Not…
Re: string search
Programming
Software Development
12 Years Ago
by D33wakar
… using fgets. [CODE]#include <stdio.h> #include <
string
.h> #include <stdlib.h> #include <ctype… fgetc*/ int word_match=0; const char* substring ="window";/*
search
word*/ int i=0; char word[15];/*to save the…
Re: string search
Programming
Software Development
12 Years Ago
by WaltP
Then read the entire document ([iCODE]read()[/iCODE]), remove all \n's and
search
. You can't find words that are split on a line without some kind of hurdle.
Re: string search
Programming
Software Development
12 Years Ago
by Narue
…;stdbool.h> #include <stdio.h> #include <
string
.h> bool is_word(int ch) { return !isspace((unsigned char…
Re: string search help
Programming
Software Development
16 Years Ago
by Ancient Dragon
…parameter to be a char* pointer, not a std::
string
object. use the c_str() method to get the pointer …(). It returns an int to the beginning of the
string
or
string
::npos if not found [code] std::size_t pos =… phone_book[index].find(lookup); if( pos !=
string
::npos) { // found it } [/code] I wrote the above from…
string search help
Programming
Software Development
16 Years Ago
by DeathEvil
part of the code [CODE]
string
phone_book[11] = {"Becky Warren, 678-1223", "Joe … argument types. This happens only when I use array of
string
objects. When I modify it to 2 dimensional array f…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC