Regular experssion Unicode: allowed only numbers and letters
What is the best way to write the query that generates the data according to the rules:(1) input string may include only numbers or letters, other symbols are not allowed,
(2) numbers must be positive integers together: 0. 9 paper, no point or a comma or a space allowed in numbers.
(3) letters may be lower or uppercase, regardless.
(4) letters/characters may come from an English alphabet and can come from an Estonian alphabet, see BOF MCet alphabet letters he
http://en.Wikipedia.org/wiki/Estonian_alphabet
Thus, the symbol of the alphabet "Has two chief points" must also be accepted. Would be preferable that the German alphabet is allowed too and any alphabet is allowed, if possible.
The initial request, I did is like this:
with t as (
select '01A' str from dual union all--ok
select '1,1' str from dual union all--not ok
select '1.1' str from dual union all--not ok
select 'F' str from dual union all--ok
select '1' str from dual union all--ok
select 'Ä3' from dual union all--ok
select 'a 3' from dual union all--not ok
select ',4Ca.' from dual--not ok
)
select * from t where regexp_like(convert(str,'us7ascii'), '^[a-zA-Z0-9]+$')
/*
01A
F
1
Ä3
*/
I was failed when I tried to use this character class:"[: alnum:] any alphanumeric character from 0 to 9 OR A to Z or a to z."
My environment:
(1) "oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - Production.
(2) NLS settings can change, depending on the client session, sometimes NLS_LANGUAGE have 'ESTONIAN' value and for some sessions, there is another value, same goes for the other nls settings I think.
--
Without "convert" - function I loose the record with "A 2 Chief points", which is bad:
with t as)
Select "01" a str of all - double union ok
Select '1.1' str of all double union - not ok
Select ' 1.1' any double union str - not ok.
Select 'F' str of all - double union ok
Select '1' str of all double union - ok
Select "3" h.t. of all - double union ok
Select ' a 3' of all - double union not ok. "
Select ', ca. 4' double - not ok
)
Select * from t where regexp_like (str, ' ^ [a-zA-Z0-9] + $')
/*
01 A
F
1
*/
Why don't you use it?
select * from t where regexp_like(str, '^[[:alnum:]]+$')
I was failed when I tried to use this character class:
I do not see any problem in using alnum. Tell us what you have got everything using the error.
Kind regards
Prazy
Tags: Database
Similar Questions
-
mx459 won't let me enter the WEP key number, allows only symbols or letters. How to enter numbers?
John
This might help
Press the SETUP button on the control panel of your printer.
Using the arrows, select DEVICE SETTINGS, press OK.
Select local network SETTINGS, then press OK.
Select Configuration LAN wireless, and then press OK.
If a message appears, press the WPS button, press STOP to cancel.
Select STANDARD INSTALLATION in the next screen that appears, and then press OK.
Select your access point or router, and then press OK.
Press OK to confirm the access point name.
Enter your password using the numeric keypad on the right.
On the screen where you enter your password at the top right of the LCD screen, you should see a: 1. This indicates you are in digital input mode. If you press the asterisk (*) will be fixed: has or uppercase mode, pressing asterisk with tiny switch. To enter a letter in letter mode, you press the digital key to scroll through the available letters. For example: to enter a letter 'c', you press the '2' three times.
Press OK when finished.
The LCD will say "Connected", if the password is correct. -
Regex to allow only integer and decimal numbers.
Hi all
I need a regex to allow only integers and decimal numbers.
Examples:
100 licences
100.00 - Unauthorized
100 - unauthorized
100.11.22 - unauthorized
all characters other than numbers - unauthorized
I used the regular expression - ^ [0-9] +. ? [0-9] * $- but its allowing the "100" also.
Can someone help me solve this problem.
Your timely assistance is greatly appreciated.
Thanks in advance.
Hello
inDiscover wrote:
Hi all
I need a regex to allow only integers and decimal numbers.
Examples:
100 licences
100.00 - Unauthorized
100 - unauthorized
100.11.22 - unauthorized
all characters other than numbers - unauthorized
I used the regular expression - ^ [0-9] +. ? [0-9] * $- but its allowing the "100" also.
Can someone help me solve this problem.
Your timely assistance is greatly appreciated.
Thanks in advance.
Use
^[0-9]+(\.[ 0-9] +) ? $
to make the decimal point and the following figures (of which there must be at least 1), as a unit, as an option.
-
Why an open page only a page full of numbers and letters instead of the enamel of dose
It would seem that you open the file in a PDF reader. You have one installed? If it isn't...
Foxit Reader
http://www.foxitsoftware.com/Secure_PDF_Reader/If you have a pdf reader, create a file association.
1. download and save the attachment to the office.
2. right click on the saved file.
3. Select: Open with on the shortcut menu.
4. click on: choose [default] program.
5. Select: Your PDF reader.
6. check: always use the selected program to open this type of file.
7. click on OK.This should allow you to open these attachments directly from email address now.
-
I use the new Sierra, but the problem predates this.
Whenever I am typing a command or an address, a strange alphabet appears with blue letters and numbers below. The stalls, insertion and numbers and letters and then repeat on their own. I can't get out.
This problem comes and goes, no real reason for when it happens.
It happens when I type in the Web addresses, etc., and when I type the commands of the operating system.
Can you give more information on mac hardware.
You can download and run the latest version 3.0.5 of Etrecheck (etrecheck.com)
and post it here please.
-
Boxes with numbers and letters show rather than some images on some websites
Yammer.com and linkedin.com, images of icons, such as those that display along the top of the screen are not displayed. Instead, I see a rectangle with numbers and letters. I've seen several articles on the rectangles with numbers and letters that apply to the characters but none regarding images. I also tried the steps described in the article on the resolution of the images is not properly displayed, and nothing seems to work.
Thank you!
Many sites now display icons using a custom font. Firefox could not be download and using this font personalized for two reasons:
(1) Firefox to use your fonts favorite instead of the police of the page; or
(2) Firefox configured to do not to download fonts.
For more information, see this thread: Yahoo mail display - action buttons like reply, delete, before them and the colors are not displayed. The solution to "clear the cache" does not help.
-
Anyone know why I can't ' type letters numbers only for my serial number?
If there are letters, then it is not a serial number. Serial numbers have only numbers, 6 sets of 4 numbers. You can be a redemption code. A redemption code is used to acquire a serial number.
Quickly find your serial number
Using redemption code
http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html
-
Regular expression to allow only numeric characters or spaces in the num field such
Hi people
Am Newbie Apex using 4.0.1 / Vista / Oracle XE and am trying to create a level validation element on a phone number field
I want any combination of numbers and valid spaces with only the obvious condition that the field cannot be completely spaces.
Can anyone help to suggest how to do because I'm really bad with something so simple that I have no exp prev reg expressions.
Thank you, as always
PeterHello
It's quite strange, I just tried your entry (without apostrophes) and it passed. Do you have you copied my reg exp (a ^ $ included) and pasted into the Expression of Validation 2 field validation with regular Expression of type? We must really work.Jirka
-
When I click on a link in a web site, it is supposed to show the details on another page of the same website with text and numbers. But it only shows numbers. Why?
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do not click on the reset button on the start safe mode window or make changes.
- https://support.Mozilla.org/KB/safe+mode
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
Alternatively, you can try to start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if it helps in the case where your security (firewall, antivirus) software causes this problem.
-
Symbols is displayed instead of numbers and letters
Function keys use caps and numbers mean only symbols.
I know there is a combination of keys I can use to solve this problem.
Its just s small keyboard and my children, press the wrong button.If anyone can help?
When I type my numbers it shows this! @# $% ^^ & * __ (()) and I cannot understand why it's like that thank you!Click on the button SHIFT 5 times and check the settings.
-
Hello all, I had this problem with my folder names on my rocket with random letters and numbers at the beginning of my files.
Example: 0B030000_Folder name
How would I go about to fix? Also note, this is visible on the "rocket" itself. If I connect it to the computer the files are fine as I originally intended them to be.
If someone can help me here would be great, thanks!
You send files more in MTP mode via Windows Media Player, which adds the extra junk to help itself index and update the database faster.
If it bothers you, you can go to Settings/System Settings/USB Mode, replace MSC, then drag files yourself, keeping WMP out of the picture.
Note: Your computer will see mode MSC or MTP - not both. So when you connect to the MSC, it will look like your music has disappeared. And when you connect to the PSG, you won't see the files that you send via MSC. The "rocket" don't care how they got there, but the computer doesn't. You can remove records of the MTP, and send even more through MSC.
-
HP J4680: how to enter the numbers and letters of wpa
I have no trouble to enter the letters of WPA, but my WPA also has a number, how should I enter a number?
Continue to press the same key again and again and watch the magic.
-
Get the lines containing only numbers and English characters
ΗΙ,
Assume that there are the following lines:
Select 'RE89203' Union double all the
Select 'cd89203' Union double all the
Select 'cD89203' Union double all the
Select 'CZC4255463' Union double all the
Select '597CD83843KL' Union double all the
Select CD 90832 83843FE 597' a Union double all the
Select 597 CD 90832 ~ 83843FE' a Union double all the
Select 'CD9083283843FΔ' Union double all the
Select 'CD9083283843FΑ' of the double
In the list above, I want to get the lines containing at least a figure and English at least one character (in capital), but with the exception of these, any other character is not acceptable (and the line as well).
I tried the following, but the result set is not the direction you want:
with sample_data as
(
Select 'RE89203' Union double all the
Select 'cd89203' Union double all the
Select 'cD89203' Union double all the
Select 'CZC4255463' Union double all the
Select '597CD83843KL' Union double all the
Select CD 90832 83843FE 597' a Union double all the
Select 597 CD 90832 ~ 83843FE' a Union double all the
Select 'CD9083283843FΔ' Union double all the
Select 'CD9083283843FΑ' of the double
)
Select one
of sample_data
where regexp_like (, ' [A - Z] [[: digit:]] ',' it)
Explanations:
The value "cD89203" is not acceptable because it contains the character 'c' (in lowercase).
597 90832 83843FE record value CD' is not acceptable because there is a space.
597 90832 record value CD ~ 83843FE' is not acceptable because there is a character "~".
The value "CD9083283843FΔ" is not acceptable because there is a non-English (character 'Δ') character.
The value of the last record "CD9083283843FΑ" is not acceptable because there is a non-English (character 'Α') character.
Note:
I'm using OraDB 11 g v2
with sample_data as ( select 'RE89203' a from dual union all select 'cd89203' a from dual union all select 'cD89203' a from dual union all select 'CZC4255463' a from dual union all select '597CD83843KL' a from dual union all select '597CD90832 83843FE' a from dual union all select '597CD90832~83843FE' a from dual union all select 'CD9083283843F?' a from dual union all select 'CD9083283843F?' a from dual union all select 'ABCDEF' a from dual union all select '1234' a from dual ) select a from sample_data where replace(translate(translate(a, '~', '#'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'), '~', null) is null and regexp_like(a, '[A-Z]') and regexp_like(a, '[0-9]') /
Edit: See post of Chris Hunt for a more efficient version of the line 17.
-
Why on msn appears one line of numbers and the letters that are blocking discussion
When I want to chat with a friend on msn a line of numbers and letters appears and prevents me to chat with my friends
What is the problem?
-
Hi need help settin up LR6 download saved to desktop, then he asked me serial number again when I went to type the serial number it only let me type numbers and letters?
all ideas
@
Serial numbers contain only numbers. You can have a redemption code that is used to obtain a serial number (or you are using the wrong serial number).
Using redemption code
http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html
Maybe you are looking for
-
I opened ink invisible messeges
When I receive messages in invisible ink, they come already open with just the text under it saying that it has been sent to invisible ink.
-
Recently, when you play in full screen, my laptop PC screen turns off and the machine continues to work sometimes with the sound still plays. The screen doesn't come back and is the only way to solve the problem by restarting the computer (by holding
-
Where can I find this that all information in the preferences > advanced, what they mean, how and why. How to permanentely to change the default printer settings. How to use out of the black cartridge for everything I print (I do not want to use ANY)
-
VAIO /Duo 13 Adapive light does not turn off
I've tried everything! I turned it from display settings, but it continues to do so. I even stopped the service in services.msc monitoring sensor, but it was of no use. It is not available in power options for me until I do now? Is there some drivers
-
Scan multiple pages to a PDF using 5510 printer all in one
It is possible to scan multiple pages to a PDF with the 5510 printer all-in-one? Or stopped from HP that allows this and now you will have to pay Adobe for the software? I use Windows 8.1 Thank you very much for all the advice offered.