Search for certain Characters within set of Characters - in a field
Hello -
I know a search can be made within a field for a word, but I am not to sure, or I don't know how to accomplish this...To do a search in a field for certain characters within a larger set of charcters.
For example: I would search, in the Call Description field, for DXXXX within CA0001DXXXXYYY or search for LXXXX within CA0001LXXXXYYY, the X is numeric characters and the Y's are Alpha characters. Can crystal accomplish this....
Thanks for your gracious help....
G.
Like I said earlier, this code:
If instr({database_field}, 'DXXXX') > 0 then "String Found" else "Not Found"
cannot be used in a Record Selection formula.
The following code can be used in the Record Selection formula:
Instr({database field}, "string") > 0
If you wish to search for 'D4444' in the field and return records where a match is found, you would use:
Instr({database field}, "D4444") > 0
-Abhilash
Similar Messages
-
Is it possible to search for strings containing spaces and special characters?
In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes. Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
Is there a way to search for strings containing spaces and special characters?In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
The RoboColum(n)
@robocolumn
Colum McAndrew -
How do I search for a word within a web page
I would like to be able to do a search for a pecific within the page currenly viewed in the browser. Is there a way to do that in Firefox?
Hi JossefPerl,
Searching on a page is actually really easy. You can just hit ''CTRL + F'' to use the search feature. You should take a look at the Knowledge Base article on [[Searching within a page]] for more information.
Hopefully this helps! -
Searching for a substring within a string
can someone reccomend a simple way to search for a substring within a string and count the number occurences of that substring.
The substring and the string will be provided as command line parameters.
Thanks
ggA simple way would be to use the indexOf methods in String:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html
Not sure what this has to do with event handling though :-P -
Search for a String within a document (Word, txt, doc) using JSP, JAVA
Hi
I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
Thanks for your help
Rizhttp://www.ibm.com/developerworks/java/library/j-text-searching.html
http://en.wikipedia.org/wiki/Full_text_search
Type these parameter in yahoo:+efficient text search
you will need something like openoffice library to read microsoft word document. -
Search for a song within a playlist in iTunes 11
I just want to know how do I search for a song within a playlist. I don't want to search the entire music library just one single playlist.
Got it. I have to deslect the Search Entire Library in the search field
-
Search for a space within a text field
Hi All
I am trying to search for a sapce within a text field but sofar not being very successful. I have used:
FIND search_str
IN text_str
MATCH COUNT lv_mcnt
MATCH OFFSET lv_moff.
where search_str = TYPE c VALUE ' '.
I am looking a way of searching a character within the string using ABAP (like INSTRING in other languages). If you have similiar codes - Could you please post me a copy - ThanksHI
Check this..
DATA string7(30) TYPE c VALUE 'This is a little sentence.'.
WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
ULINE /1(26).
SEARCH string7 FOR 'X'.
WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',
sy-fdpos UNDER 'SY-FDPOS'.
SEARCH string7 FOR 'itt '.
WRITE: / 'itt ', sy-subrc UNDER 'SY-SUBRC',
sy-fdpos UNDER 'SY-FDPOS'.
SEARCH string7 FOR '.e .'.
WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',
sy-fdpos UNDER 'SY-FDPOS'.
SEARCH string7 FOR '*e'.
WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',
sy-fdpos UNDER 'SY-FDPOS'.
SEARCH string7 FOR 's*'.
WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',
sy-fdpos UNDER 'SY-FDPOS'.
Thanks ,
Praveen -
Can't search for certain characters in Address Book
Hello all,
Since there is no search and replace in Address Book, I have this problem: I long ago entered some 3 digit area codes with abbreviated versions such as "9/" or "8/", etc. I now wish to change the abbreviated versions to the actual three digit area codes, and there are quite a lot of them. But when I search for "9/", for instance, the search returns every entry of "9", but no example of anything containing "/". I guess this is a limitation (albeit a strange one) of Address Book or OSX itself.
Does anyone have a clue how I can make the necessary changes, or if there is a search & replace script or application available?
ThanksFrom the iPod Touch (4.1) Users Guide:
You can search first, last, and company names in your contacts on iPod touch.
Thus, there are only three searchable fields and phone # is not one of them. -
How can I use SQL to search for a pattern within a field?
Hello, Frank, Solomon, ect
I am now faced with this particular scenario, I've got the SQL to search through a field to find text within the field, but I have to know what it is before it can look for it.
What I have to do is this:
Search through a field, for a pattern, and I won't know what the data is I am looking for. Can this be done in SQL?
For instance, Here is my SQL this far, I was helped allot in order to get to this point.
select table_name,
column_name,
:search_string search_string,
result
from (select column_name,
table_name,
'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
from cols
where table_name in ('TABLE1', 'TABLE2')),
xmltable (str columns result varchar2(10) path '.')
When you execute the above SQL, you have to pass in a value. What I really need is to alter the above SQL, to make it search for a pattern that exist's within the text of the field itself.
Like for instance, lets say the pattern I am looking for is this" xx-xxxxx-xxxx" and it's somewhere in a field.
I need to alter this SQL to take this pattern and search through all the schemas and tables to look for this pattern match.
Can be done?When you use something dynamically within a function or procedure, roles do not apply and privileges must be granted directly. So, you need to grant select on dba_tab_cols directly. If you want to do pattern matching then you should use regular expressions. The following example grants the proper privileges and uses regexp_instr to find all values containing the pattern xxx-xxxx-xxxx, where /S is used for any non-space character. I limited the tables in order to save time and output for the test, but you can eliminate that where clause.
SYS@orcl> CREATE USER test IDENTIFIED BY test
2 /
User created.
SYS@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
2 /
User altered.
SYS@orcl> GRANT CREATE SESSION, CREATE TABLE TO test
2 /
Grant succeeded.
SYS@orcl> GRANT SELECT ON dba_tab_cols TO test
2 /
Grant succeeded.
SYS@orcl> CONNECT test/test
Connected.
TEST@orcl> SET LINESIZE 90
TEST@orcl> CREATE TABLE table1
2 (tab1_col1 VARCHAR2(60))
3 /
Table created.
TEST@orcl> INSERT ALL
2 INTO table1 (tab1_col1) VALUES ('xxx-xxxx-xxxx')
3 INTO table1 (tab1_col1) VALUES ('matching abc-defg-hijk data')
4 INTO table1 (tab1_col1) VALUES ('other data')
5 SELECT * FROM DUAL
6 /
3 rows created.
TEST@orcl> CREATE TABLE table2
2 (tab2_col2 VARCHAR2(30))
3 /
Table created.
TEST@orcl> INSERT ALL
2 INTO table2 (tab2_col2) VALUES ('this BCD-EFGH-IJKL too')
3 INTO table2 (tab2_col2) VALUES ('something else')
4 SELECT * FROM DUAL
5 /
2 rows created.
TEST@orcl> VAR search_string VARCHAR2(24)
TEST@orcl> EXEC :search_string := '\S\S\S-\S\S\S\S-\S\S\S\S'
PL/SQL procedure successfully completed.
TEST@orcl> COLUMN "Searchword" FORMAT A24
TEST@orcl> COLUMN "Table" FORMAT A6
TEST@orcl> COLUMN "Column/Value" FORMAT A50
TEST@orcl> SELECT DISTINCT SUBSTR (:search_string, 1, 24) "Searchword",
2 SUBSTR (table_name, 1, 14) "Table",
3 SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
4 FROM dba_tab_cols,
5 TABLE
6 (XMLSEQUENCE
7 (DBMS_XMLGEN.GETXMLTYPE
8 ( 'SELECT ' || column_name ||
9 ' FROM ' || table_name ||
10 ' WHERE REGEXP_INSTR
11 (UPPER (' || column_name || '),''' ||
12 UPPER (:search_string) || ''') > 0'
13 ).extract ('ROWSET/ROW/*'))) t
14 WHERE table_name IN ('TABLE1', 'TABLE2')
15 ORDER BY "Table"
16 /
Searchword Table Column/Value
\S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>matching abc-defg-hijk data</TAB1_COL1>
\S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>xxx-xxxx-xxxx</TAB1_COL1>
\S\S\S-\S\S\S\S-\S\S\S\S TABLE2 <TAB2_COL2>this BCD-EFGH-IJKL too</TAB2_COL2>
3 rows selected. -
Search for White space within strings
create table emp_dtl
(empname varchar2(23));
Insert into emp_dtl values ('WAYNE');
Insert into emp_dtl values ('JOSEPH KRUPP'); --------- has white space
Insert into emp_dtl values ('YING ZONG LEE'); --------- has white space
Insert into emp_dtl values ('COHEN');
Insert into emp_dtl values ('MARIE');How can i search for empnames which has White space in it? From other OTN threads, I gathered that this has something to do with
chr(32)But i don't know how to put this in LIKE operator.Hi,
SELECT *
FROM emp_dtl
WHERE REGEXP_LIKE (empname, '\s')
;will look for any kind of whitespace (including spaces, which are CHR (32)).
It may be more efficient to specifically list all the different whitespace characters, and see if the string changes when you remove all of them:
SELECT *
FROM emp_dtl
WHERE empname != TRANSLATE ( empname
, 'x ' || CHR (9) -- CHR (9) = <tab>
|| CHR (10) -- CHR (10) = <newline>
|| CHR (13) -- CHR (13) = <return>
, 'x'
;Edited by: Frank Kulash on Jul 12, 2010 8:47 AM -
How do I search for adjacent words within MS WORD?
I am new to Mac. I need to search WITHIN MS Word Documents for specific phrases. Example: Jim is a good boy. Spotlight will find all documents containing those 5 words, but not those 5 words together. There has to be a way...
MacBook Mac OS X (10.4.8)First, thanks, I did. My naive take is that new plug-ins wouldn't be required.
Second - I don't know about Google finding every document, but it returns some pretty impressive results, and fast (so long as Google indexes the page in the first place of course). You've never used this feature? I do it all the time when I want to see if there's an internet version of a document I have in my hand.
Here's a random example the feature in action - I went to boingboing.net and snagged a phrase from the October archives: "You should give props to BabyStyle.com for the blue octopus costume". Here's the link to the October page:
http://boingboing.net/200610_01archive.html
and here's the link to the successful Google search:
http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&client=firefox-a &rls=org.mozilla%3Aen-US%3Aofficial&q=%22Youshould+give+props+to+BabyStyle.com+for+the+blue+octopuscostume%22&btnG=Search
Pretty impressive - the internet is a big place!
Thirdly, there was a program written for OS 9 called "Gopher" that did just that. It was pretty handy. Come to think of it, it may have been written for System 8! It vanished from publication before there was even a web for it to be distributed on, and when I switched to OS X, it wasn't working well under 9. Of course outside of the personal computing realm, there are well known database programs like Lexis and Nexis that perform exact phrase searches on their databases, which are pretty extensive (at least as large as most document collections on most personal computers, I'd venture). In fact if you've never used those programs they have some pretty powerful functions, like searching for any occurrence of a word within so many words of a second target word.
I'll give you a couple of examples of where phrase searching might come in handy. Suppose I have a collection of e-mails or correspondence (I guess we all do) and I want to find the one in which I facetiously repeated the punchline to the chicken joke - "to get to the other side". (You have to grant I might have a reason for wanting this particular e-mail, okay?) Of course if I search on "get", "other" and "side" I may wind up with four or five hundred results; those are pretty common words. That doesn't help me much. A phrase search,however, will yield, I dunno, three or four documents. Bingo.
Or, here. I work in an office creating documents all day long. I've been working in this office, on PCs, for 16 years. That's a lot of documents. I may create three dozen or more on a single subject. The documents are all on the same subject and all pretty much have the same words in them. Maybe I've got a single paragraph printed from one of them and want to find the source document. A simple word search will yield back 80% of the lot. A phrase search typed in from the paragraph is almost certainly unique, however, and will give me my document in a blink.
(Um, I'd have to move all the documents to a Macintosh to do this, but you get the point I hope.)
Spotlight says it finds "anything anywhere" on your computer. I would use a feature like this *all the time*. Why shouldn't it be able to do it? -
I want to Search for a file within a directory
how can i access a directory and search for a folder name in that directory
Hi,
SQL> set serveroutput on
SQL>
SQL> Declare
2 l_conn UTL_TCP.connection;
3 l_list ftp.t_string_table;
4 Begin
5 DBMS_OUTPUT.disable;
6
7 l_conn := ftp.login( '172.21.15.15'
8 , '21'
9 , 'test'
10 , 'test123' );
11
12 ftp.list( p_conn => l_conn
13 , p_dir => ''
14 , p_list => l_list );
15
16 ftp.logout(l_conn);
17
18 utl_tcp.close_all_connections;
19
20 DBMS_OUTPUT.Enable;
21
22 If l_list.Count > 0 Then
23 For i IN 3 .. l_list.Last Loop
24 DBMS_OUTPUT.put_line(Trim(substr(l_list(i),instr(l_list(i),' ',-1))));
25 End Loop;
26 End If;
27 End;
28 /
files1
files10
files11
files2
files3
files4
files5
files6
files7
files8
files9
PL/SQL procedure successfully completedhttp://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
http://www.oracle-base.com/dba/miscellaneous/ftp.pks
http://www.oracle-base.com/dba/miscellaneous/ftp.pkb
Or Chris Poole's XUTL_FTP package:
http://www.chrispoole.co.uk/apps/xutlftp.htm
or with DBMS_BACKUP_RESTORE
SQL> -- How to Install
SQL> -- .../RDBMS/ADMIN/dbmsbkrs.sql
SQL> -- .../RDBMS/ADMIN/prvtbkrs.plb
SQL> -- .../RDBMS/ADMIN/catproc.sql
SQL>
SQL> Set Serveroutput on;
SQL> Create or replace directory DIR_TEMP as 'c:\temp';
Directory created
SQL> Create OR Replace Procedure list_directory(directory Varchar2) Is
2 ns Varchar2(1024);
3 v_directory Varchar2(1024);
4 Begin
5 v_directory := directory;
6 DBMS_BACKUP_RESTORE.SEARCHFILES( v_directory
7 , ns );
8 For each_file IN (SELECT fname_krbmsft As Name
9 FROM x$krbmsft) Loop
10 DBMS_OUTPUT.PUT_LINE(each_file.Name);
11 End Loop;
12 End;
13 /
Procedure created
SQL> begin
2 list_directory('c:\temp');
3 end;
4 /
C:\Temp\prvtbcnf.plb
C:\Temp\something.txt
PL/SQL procedure successfully completedRegards,
Christian Balz -
Is there a way to search for a file within a site defined in Dreamweaver?
I know you can search for phrases within a file's code, but
what if I have defined an extremely large site in Dreamweaver with
thousands of files in it and then I search for a file with the
phrase "contact" in it? Is there a way to do this in Dreamweaver or
is there an extension that would add this functionality?On Thu, 24 Jan 2008 01:50:58 +0000 (UTC), "MartinUCSD"
<[email protected]> wrote:
>I know you can search for phrases within a file's code,
but what if I have
>defined an extremely large site in Dreamweaver with
thousands of files in it
>and then I search for a file with the phrase "contact" in
it? Is there a way
>to do this in Dreamweaver or is there an extension that
would add this
>functionality?
Of course
Edit | Find and replace
put in the "content" in the Find box - select Find in Entire
site and
click Find all
~Malcolm N....
~ -
Searching for a string within a file
In control panel \ folder options \ search tab I've selected "always search file names and conents (this might take several minutes). and under "how to search" I have checked all 4 boxes. Yet, when I search a folder
and all sub-folders for a file containing a string Windows 7 finds nothing. in XP this worked perfectly. How do you search like this in Windows 7? I actually had to write a PowerShell script that does the search for me and I thought Windows
7 could do this by default but I guess not?!?!?
mqh7Hello mqh7.
You can use the find command from the Windows 7 command prompt window.
Open a command prompt window and run find /? to have more informations about the command syntax or read the command documentation available
here in TechNet Library.
Bye.
Luigi Bruno
MCP, MCTS, MOS, MTA -
When I'm in a playlist, how can I search for a song within it
I can only search my entire library whereas I used to be able to search within the playlist. I'm sure it can still be done.
Hi Busygirl, it sounds as though Firefox is handing that email off to Outlook Express, or another program that isn't set up.
If you want to use a Gmail or Yahoo mail account for sending the link, you can set that up as follows:
orange Firefox button (or Tools menu) > Options > Applications
In the search box above the list of file types, type or paste '''mailto''' and pause while the list is filtered. In the drop-down on the right, choose Gmail or Yahoo.
If it's a different service, and it's not already on that drop-down, then there is a setup step you need to do first. That's going to be different for each service... let us know which one.
Maybe you are looking for
-
ITunes 9 Home Sharing does not work on Windows 7 x64
iTunes 9 Home Sharing does not work on Windows 7 x64. Getting the following error message: Home sharing could not be activated because this computer is not authorized for the account "iTunes account." Please authorize this computer and try again. Thi
-
Can I put my Motorola cable into stand-by mode?
It's a silly question, but I just want to be sure. While I had the cable modem connetced to my PC, I was able to put it into stand-by mode after I shut-down the computer; now that the modem is connected to the Airport Extreme, I wonder if the router
-
IMovie constant hang on Share/Media Browser/Export
Setup: - Mac Pro, 2008 - 6GB ram - Clean install of 10.6 - Clean install of iLife '09 - Latest patches for all. - Roughly 100GB free on /User partition (love being able to move it) - Roughly 470GB free on / First import of footage from Canon HD HDD c
-
OMBuilderException detail unsupported element in SOAPFault element
Hi, I am trying to access the Sharepoint web services using JAVA. I get this error when I try to execute a search. Sharepoint 2013 FormsBasedAuthentication .NET 4.5 SOAP 1.2 UPDATE: I tried changing the SOAP version for the Stub to 1.1 The error cha
-
SCCM 2012 SP1 Update to CU5 not showing version 1600 for clients updated !
Recently upgraded SCCM 2012 SP1 and its showing a version of 5.0.7804.1600 as it should be. Pushed out the CU 5 client manager update to few machines and they are also showing .1600 as the version, however in SCCM 2012 manager itself it is not updati