Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Val #1
Search
Does anyone know why the search on this newsgroup does
not bring up any results if I type in a name in the "From
Line" ?
Val Guest
-
ANN: InterAKT Site Search - search in multiple tables
Hello, We have just released a new product, MX Site Search, meant to help web developers and designers create a search form in their dynamic... -
#25786 [NEW]: PHP website uses cookies to remember last search phrase in search box
From: tipsen at imada dot sdu dot dk Operating system: - PHP version: Irrelevant PHP Bug Type: Unknown/Other Function Bug... -
Search within Search Results
I am trying to do a search within query results: My first search executes fine, but my second search uses the WHERE parameters of my first... -
search box HELP!
One of these should do:- http://perso.planetb.fr/newton/#text http://tinyurl.com/m2zm Andrew Morton -
XP Search - how to not search inside .ZIP files
Is there any way to make the Windows Explorer Search facility not search the contents of .ZIP files? -
Jake #2
Search
the "From>-----Original Message-----
>Does anyone know why the search on this newsgroup does
>not bring up any results if I type in a name in>Line" ?
>.
>Yes it does, but it is redundant (not necessary).Jake Guest
-
David B. Ferguson #3
Re: Search
> I guess my problem is that I access the newsgroup with a
Until you want to do something must news readers do natively <g>> browser not in my mail program because it seems easier
> this way.
David-
David B. Ferguson Guest
-
kiluco #4
Search
When I do a search using "Search Companion", the search
will not find Folders. Does fine finding Files, but no
folders. Any ideas?
kiluco Guest
-
Jimmy #5
Search
I have two files in a tmp directorie. each file have some data in
them. Some data are the same. I want to search in the files (with file
handles), and display the data on screen. But if they have the same
data in both files, display the data once. Here's my code but doesn't
work. Not all the data is display:
while( <FILEHANDLE> or <FILEHANDLETWO>)
{
$mesAlertes = <FILEHANDLE>;
$mesAlertesDeux = <FILEHANDLETWO>;
$final = ($mesAlertes, $mesAlertesDeux); #take data in both
#but display once if the
data
#is the two files...
print $final;
}
What's wrong???
Jimmy Guest
-
Anno Siegel #6
Re: Search
Jimmy <jimmy_armand@hotmail.com> wrote in comp.lang.perl.misc:
This reads a line from each file and discards them.> I have two files in a tmp directorie. each file have some data in
> them. Some data are the same. I want to search in the files (with file
> handles), and display the data on screen. But if they have the same
> data in both files, display the data once. Here's my code but doesn't
> work. Not all the data is display:
>
> while( <FILEHANDLE> or <FILEHANDLETWO>)
These read one more line from each file.> {
> $mesAlertes = <FILEHANDLE>;
> $mesAlertesDeux = <FILEHANDLETWO>;
This sets $final to $mesAlerts and discards $mesAlertsDeux. What> $final = ($mesAlertes, $mesAlertesDeux); #take data in both
do you want to achieve?
Well, you only work on every other line of each file, that's why you> #but display once if the
> data
> #is the two files...
>
> print $final;
> }
>
> What's wrong???
don't see all the data.
As for discarding data that has already been displayed, your code
doesn't even make an attempt.
In a crude approach, I'd deal with each file on its own. First go
through one file and print it. Also keep the lines you printed in
a hash.
Then print the second file, but skip lines that are in the hash.
Anno
Anno Siegel Guest
-
Eric Walker #7
search
I am trying to search a string for a "[]". I want to count the amount
of "[]" in the string.
Any IDeas....
Eric Walker Guest
-
Mark Anderson #8
RE: search
perldoc -q count> From: Eric Walker [mailto:ewalker@micron.com]
> Sent: Friday, November 21, 2003 1:34 PM
> Subject: search
>
>
> I am trying to search a string for a "[]". I want to count the amount
> of "[]" in the string.
>
> Any IDeas....
gives you:
How can I count the number of occurrences of a substring within a string?
There are a number of ways, with varying efficiency. If you want
a count of a certain single character (X) within a string, you
can use the "tr///" function like so:
$string = "ThisXlineXhasXsomeXx'sXinXit";
$count = ($string =~ tr/X//);
print "There are $count X characters in the string";
This is fine if you are just looking for a single character.
However, if you are trying to count multiple character
substrings within a larger string, "tr///" won't work. What you
can do is wrap a while() loop around a global pattern match. For
example, let's count negative integers:
$string = "-9 55 48 -2 23 -76 4 14 -44";
while ($string =~ /-\d+/g) { $count++ }
print "There are $count negative numbers in the string";
You want the second example, but you want to use /\[\]/g as your pattern
match.
/\/\ark
Mark Anderson Guest
-
Rob Dixon #9
Re: search
Mark Anderson wrote:
Hi Mark.>>> > From: Eric Walker [mailto:ewalker@micron.com]
> > Sent: Friday, November 21, 2003 1:34 PM
> > Subject: search
> >
> >
> > I am trying to search a string for a "[]". I want to count the amount
> > of "[]" in the string.
> >
> > Any IDeas....
> perldoc -q count
>
> gives you:
>
> How can I count the number of occurrences of a substring within a string?
>
> There are a number of ways, with varying efficiency. If you want
> a count of a certain single character (X) within a string, you
> can use the "tr///" function like so:
>
> $string = "ThisXlineXhasXsomeXx'sXinXit";
> $count = ($string =~ tr/X//);
> print "There are $count X characters in the string";
>
> This is fine if you are just looking for a single character.
> However, if you are trying to count multiple character
> substrings within a larger string, "tr///" won't work. What you
> can do is wrap a while() loop around a global pattern match. For
> example, let's count negative integers:
>
> $string = "-9 55 48 -2 23 -76 4 14 -44";
> while ($string =~ /-\d+/g) { $count++ }
> print "There are $count negative numbers in the string";
>
>
> You want the second example, but you want to use /\[\]/g as your pattern
> match.
There's no need for the loop. All you have to do is execute the pattern
match in list context and take the scalar value of that list:
my $string = "-9 55 48 -2 23 -76 4 14 -44";
my $count = () = $string =~ /-\d+/g;
print "There are $count negative numbers in the string";
**OUTPUT
There are 4 negative numbers in the string
HTH,
Rob
Rob Dixon Guest
-
Douglas Lentz #10
Re: search
Eric Walker wrote:
$string = "a4r[]qy78[]x]y[114t";>I am trying to search a string for a "[]". I want to count the amount
>of "[]" in the string.
>
>Any IDeas....
>
>
>
>
>
>
$count = $string =~ s/\[]/\[]/g;
print "$count\n" # $count will equal 2
Notice that this is not, (I repeat, not) the same as variable en passant
capture
($count = $string) =~ s/\[]\[]/g;
Moral of the story: parentheses are important. Mix these two modes at
your own peril (and I learned the hard way!).
Douglas Lentz Guest
-
R. Joseph Newton #11
Re: search
Eric Walker wrote:
Are the brackets nested, or are they discrete. This makes a big> I am trying to search a string for a "[]". I want to count the amount
> of "[]" in the string.
>
> Any IDeas....
difference in how you go about this. If they are not nested, I would
recommend Rob's solution above.
Joseph
R. Joseph Newton Guest
-
Douglas Lentz #12
Re: search
Eric Walker wrote:
re my first post on this, here is a better (well, Lazier) way:>I am trying to search a string for a "[]". I want to count the amount
>of "[]" in the string.
>
>Any IDeas....
>
>
>
>
>
>
$string = "a4r[]qy78[]x]y[114[[[[[[|]]]]]]t";
$count = $string =~ s/(\[])/$1/g;
print "$count\n";
# $count is the number of times the desired expression (DU) appears in
the search string
# $string is the string to be searched
# the regex substitutes the DU for itself. Utterly useless, but a
side-effect is that the number of substitutions performed is stored in
$count.
# the $1 variable is a placeholder, it saves you the effort of typing
the DU twice and possibly making a mistake
Douglas Lentz Guest
-
Kisoen #13
search
can some one hel;p with this query advanced
I have coding now
SELECT Call.CallID, Call.IntakeDate, Support.SupportName,
Call.FunORCorr_change, Call.SystemID, Call.ShortDescription
FROM Call INNER JOIN Support ON Call.IntakeBy = Support.SupportID
___
where call.callid= 'varcall' or (call.systemid = 'varsystem' and
call.funorcorr_change = 'varfun') order by call.intakedate desc
___
if you can see the varcall is working fine (is based on searching for 1
particular record
the vasystem (if i do only varsystem it's working but together with varfun
not)
I hope you can help me with this I want to have a multiple search
functionality with listbox and checkbox
and cross searching but not working properly
I'm doing something wrong?
please advise
kisoen
Kisoen Guest
-
-
Felix1 #15
Re: search
What kind of search? into database or into the site pages? and which server
language? If you intend to search into pages and use PHP_MySQL server model
here is one [url]http://www.felixone.it/extensions/mxssen.asp[/url] Felix
Felix1 Guest
-
emmim44 #16
Search
Simple search...
Can any one give me how to start a basic search in cf.? The directory I want to search through is on another server..
Any help will be greatly appreciated..
emmim44 Guest
-
wmanu #17
Search
Hi all,
I have created a collection for searching my website. I?m able to list the
search output on to the results page. But when I display the ?summary? field of
the search output, it displays the variables as ?#VarName#?, not the value. And
the SQL queries as ?SELECT * FROM TABLE? etc not the results. How do I overcome
this situation, I don?t want to display the ColdFusion variables or queries but
I wish to display the same pages with the values.
Hope this make sense. Any help is greatly appreciated.
Cheers / Manu.
wmanu Guest
-
-
torm #19
search
i read example but i dont understand PLEASE anyone explain please
<cfif C1String is not "">
<cfif SrchOption is "ANY">
and Upper(#C1Field#) LIKE '%#Ucase(C1String)#%'
<cfelse>
and Upper(#C1Field#) LIKE '#Ucase(C1String)#%'
</cfif>
please explain the diff between '%#Ucase(C1String)#%' and
#Ucase(C1String)#%'
many thanks
torm Guest
-
OldCFer #20
Re: search
If you were looking for the letter 'X'
'%#Ucase(C1String)#%' would find 'TEXAS' and 'XRAY'
'#Ucase(C1String)#%' would only find 'XRAY'
The % are wildcard characters. In the front they mean "anything before is OK"
and
trailing they mean "anything after is OK". If they are not there only an exact
match
would be returned.
OldCFer Guest



Reply With Quote

