Find the alteast a number and a character in the given string
Hi allHow to find the given input string, it contains at least one alpha and one number.
My test like this data
test123-> pass
test-> Fail
123Test-pass
123 > fail
select * from dual where regexp_like ('test123','[0-9]')
If it closes your questions, so please mark the thread as an answer.
Tags: Database
Similar Questions
-
Filter % symbol in the given string
Hi friends,
I want to delete the '%' symbol in the given string and load it into another table.
For example:
========
If the string is "% hgjkdhdfj % djsfhsjk % hjkghf % fdjhjhfsjh"... In this example, I want to delete all the '%' symbol and load into another table... Query will be relevant to the entire...
Someone help me please...
Kind regards
Williams.I'm not quite clear on your condition... you are looking for:
SQL> select replace ('fdjhjhfsjh%hgjkdhdfj%djsfhsjk%hjkghf%', '%') 2 from dual 3 / REPLACE('FDJHJHFSJH%HGJKDHDFJ%DJS --------------------------------- fdjhjhfsjhhgjkdhdfjdjsfhsjkhjkghf
-
setUpComplexFindReplace() can't find the regex strings
I wrote an extension to run multiple find and replace by calling setUpComplexFindReplace() and replaceAll() and so far everything works fine, as long as I'm not looking to match a RegEx string.
Let's say I'm trying to find the ampersand symbol and convert it to a HTML character entity. If I open the dialog box search / replace DW records the following code and save the query. This query in the dialog works search / replace fines and any independent (with a space before and after) & s loading are.
<? XML version = "1.0"? >
< dwquery >
< queryparams matchcase = 'false' ignorewhitespace = 'false' useregexp = "true" wholeword = "false" / >
< find >
"< qtext = qname ' \s & amp; \s" qraw = "true" > < / qtext > "
< / find >
"" < replace action = 'replaceText' param1 = ' & amp; nbsp; & amp; amp; & amp; nbsp;" param2 = "" / >
< / dwquery >
However, passing the foregoing as a parameter to setUpComplexFindReplace() will not find anything:
dreamweaver.setUpComplexFindReplace ("< dwquery > < queryparams matchcase ="false"ignorewhitespace =" false" useregexp ="true" wholeword ="false"/ > < find > < qtext = qname" \s & amp; \s"qraw ="true"> < / qtext > < / find > < replace action ="replaceText"param1 =" & amp; nbsp; & amp; amp; & amp; nbsp;") param2 = "" / > < / dwquery > ');
dw.replaceAll ();
Is this is a bug in the API and is there any workaround?Make sure that escape you all characters of backslash: qname = "\s and \s" inescapable qname = '\\s & \\s '.
-
Help! Can't find my product code number and should reinstall Windows 7 on Macbook Air parallel
I have completely reformatted my hard drive, thinking that I had everything stored on an external drive. So now support Parallels tells me that I have to reinstall Windows 7. I have the disc, but I don't have the product code. I have no idea where he is. Is there a way I can get help without having to buy the product again?
Product key replacement, try to contact Microsoft:
http://support.Microsoft.com/contactus/Get a new Windows 7 product key:
If your Windows product key is not valid, if you don't have a Windows product key,
or if you have lost the product key that came with Windows,
you will need to buy a new one to activate Windows.
http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-7-product-keyJ W Stuart: http://www.pagestart.com
-
Find the exact match from the given string
Hi friends,
I have a string separated by commas parent ' asdf, 1234, Vanessa, rtu, 123'.
If the string to find is "1234", the query should return 'Y' (as '1234' had an exact match).
If the string to find is '12', the query should return "n" (for '12' has no exact match).
If the string to find is "12345", the query should return "n" (since '12345' has no exact match).
If the string to find '123', then the query must return 'Y' (from '123' has an exact match).
If the string to find is "124", the query should return "n" (since "124" has no exact match).
The string to find will not have a comma.
I tried with INSTR, REGEXP, REPLACE logical BI-BOUTEILLE. It does not work. Please help me.
Not sure exactly what you want or what are your intentions of PL/SQL, but it can help you!
SQL > ed
A written file afiedt.buf
1 declare
2 v_parent_str VARCHAR2 (200): ='asdf, 1234, Vanessa, rtu, 123';
3 v_src_str1 VARCHAR2 (50): = '123';
4 v_src_str2 VARCHAR2 (50): = '12';
5 v_src_str3 VARCHAR2 (50): = '1234';
6 v_src_str4 VARCHAR2 (50): = '12345'.
7 - my varriables is declared.
8 I PLS_INTEGER;
9 str VARCHAR2 (100);
tab 10 sys.dbms_utility.uncl_array;
11 start
12 str: = "" ' | " REPLACE (v_parent_str, ",", "",""). '"';
13 sys.dbms_utility.comma_to_table (str, i, tab);
14 d in 1.5 in loop
15. If TRANSLATE (tab (j) "," has "', 'A') (v_src_str2, v_src_str3, v_src_str1, v_src_str4) then
16 dbms_output.put_line (TRANSLATE (tab (j) "," has "', 'A') |') -exist");
17 end if;
18 end of loop;
19 * end;
20.
1234 is
123 exists
PL/SQL procedure successfully completed.
SQL >
If you need something else, then please clearly describe the requirement.
-
Hi all
CREATE TABLE TEST
(
NAME VARCHAR2 (100 CHAR)
)
Insert into TEST (NAME) Values ('1,2,3');
Insert into TEST (NAME) Values ('2,3,4');
COMMIT;
I want to search the string like
Select * from test where (name like ('%' |)) NVL (lower(:t), '%'). ("%') or name is null)
above sql will ask the value, if we enter '1,2,3' I get the result...
If I pass "3,2,1" do not get the result...
I need to verify the existence of any value... .query should return the result.
If I pass "3,2,1" - the query should return the result.
If I pass '2.1' - query should return the result.
If I pass "3.1 -" query should return the result.
Thank you
Thank you
Murali
Hi Etbin,
but not in Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
I guess it's work-
SQL > with
2 an essay in
3 (select name "1,2,3" of all the double union)
4 Select "2,3,4' double"
5)
6. Select t.nom
test 7 t,
8 (element select regexp_substr(&string,'[^,]+',1,level))
9 count (*) items (order of null value)
10 double
11. connect by level<= regexp_count(&string,',')="" +="">=>
(12) x
where the 13 instr (t.name, x.item) > 0
14 t.nom group
15 having count (*) is max (x.items);.
Enter the string value: '1.2'
old 8: (element select regexp_substr(&string,'[^,]+',1,level))
8 new: (element select regexp_substr('1,2','[^,]+',1,level))
Enter the string value: '1.2'
old 11: connect by level<= regexp_count(&string,',')="" +="">=>
11 new: connect by level<= regexp_count('1,2',',')="" +="">=>NAME
-----
1,2,3Elapsed time: 00:00:00.46
SQL >
SQL >
SQL > select * from v version $;BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Solaris: 11.2.0.3.0 - Production Version
NLSRTL Version 11.2.0.3.0 - ProductionElapsed time: 00:00:00.46
-Nordine
-
stnd_drm_get_file_subvars. SQL $TRAN_TBL_PREFIX {_tran_code #V {chain_seq}}
This is my channel
Could someone help me find
stnd_drm_get_file_subvars. SQLwith data as ( select 'stnd_drm_get_file_subvars.sql $TRAN_TBL_PREFIX {#V{chain_seq}_tran_code}' s from dual ) select substr(s, 1, instr(s,' ') -1 ) r from data R stnd_drm_get_file_subvars.sql
If you want to split to $ replace ' ' with ' $'.
Published by: chris227 on 31.08.2012 05:13
-
Extract the given string a String between double quotes
Hey guys,.
I am doing a project open source to help lovers of ADS - B to store data on Oracle Database XE (11.2.0.2)
I need to retrieve a string, but I didn't know how, please can someone help me.
Chain: [{'id': 'PR - GIG', 'label': "PR-CONCERT - E47EB2 - BS Airlines - Boeing 737 - 73 S (29077)", "value": 'PR - GIG' "}]
KeyString: "label".
Output: ' PR-CONCERT - E47EB2 - BS Airlines - Boeing 737 - 73 S (29077) '
And if possible put this string in multiple strings
String1: PR-GIG
Channel 2: E47EB2
String3: BS Airlines
String4: Boeing 737 - 73 S
String5: 29077
Thanks for the help.
Select x.*
t,.
XMLTable)
"ora: tokenize($s,"-").
from regexp_substr (str,'"label": "([^"]+) "', 1,1,null, 1) as"s ".
) x
/
COLUMN_VALUE
-------------------------
PR - GIG
E47EB2
BS Airlines
Boeing 737 - 73S (29077)SQL >
SY.
-
How to find the number, product hp care pack number hw/sw
How to find hp care pack number and number of products hw/sw pls advice
Contact HP directly.
It's the HP consumer support forum and not a unit of HP.
-
Find the occurrence of the word in a list separated by commas
Hello
I need to find the first occurrence of a word in a list separated by commas.
Example list:
Now I'm looking for the word: bambimonster,daemon,shark,bambi,sky
Result should be the first calculation of the event: 4
Now I'm looking for the word: Monster
Result should be the first calculation of the event: 1
Hope you can help.
TobiasHi, Tobias,.
This can be more efficient, because it does not use CONNECT BY or regular expressions. Instead of splitting the string to the level of every comma, just find the target string and count how many commas occur in front of her.
WITH got_found_pos AS ( SELECT list_txt , INSTR ( ',' || list_txt || ',' , ',bambi,' ) AS found_pos FROM table_x ) SELECT list_txt , found_pos + 1 - LENGTH ( REPLACE ( SUBSTR (list_txt, 1, found_pos) , ',' ) ) AS item_num , found_pos FROM got_found_pos WHERE found_pos > 0 ;
Delimited lsits storage is usually a bad idea in a relational database. It is best to store each item in the list on a separate line.
-
How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?
See if this application works for you > https://itunes.apple.com/us/app/image-size/id670766542?mt=8
-
I just started using my new iMac 27 "and in Mail, I can't find the setting to display a column that shows the number of emails in each folder. Mavericks, I had this column. I have checked all the menus and preferences and search online.
Click the triangle next to the Inbox to view the Inbox for each account. Then select the desired mailbox and the information will be displayed in the upper part.
You are entitled to 90 days telephone support from Apple. Try to contact them.
-
Hello, my Mac Mini was stolen before that I could save it to find my iPhone service. Is it possible to set up another computer or device so I can find it? I still have the serial number and and other information.
Nope
-
How to find the model, product and serial number on your Hp Printer.
This video shows you how to find your model number, product number and the serial number of your Hp Printer. This information is required to use the Hp customer care website, downlad the latest drivers, find product specifications, order correct substitute parts, troubleshooting to find the items and validate the warranty status.
* If you find this useful or mean please make sure you click on the White Star under my name to give me congratulations. **
I hope this helps!
-
Hello
SQL query to find the total number of source based nonsource passangersbetween source and destination station and passenger station on the same chekindate.
Please help on this script and let me know if you need more details.
---
You use a SELECT statement. Let me know if you need more details.
Maybe you are looking for
-
DC7700: update the BIOS in Vista
Hello. I have a dc7700 Convertible Minitowers (Windows Vista 32 bit Ultimate) and I want to update my BIOS. Product page shows the BIOS is compatible with Vista business and enterprise. This mean that I can or can not be updated using Vista Ultimate?
-
My acer desktop computer is stuck in a boot loop and I can not enter windows, even in safe mode to fix the problem. I get the message "installation to date 3/3" then stops and starts again.Before that I used the system mechanic to remove unnecessary
-
How upgrade vista home preium to vista Ultimate edition
I want tio upgrade to Vista Ultimate and I have Vista Home Premium installed. When I try to upgrade, I get a message to say that the version I installed is older, then what is already installed. I want to use additional features.
-
I have a switch SRW248G4P. I want to manage the switch. I don't know that this switch is not in the default factory. I have connected a laptop computer to the console port and the switch does not work. My settings are correct. How can I reset th
-
Hello I want to detect the sms received on bb and change this sms and t for correct number but how do I detect the forward received sms and the content of the sms newsletter I read a few posts, but I want it in multithreading please sombody have code