Questions tagged [non-alphanumeric]

65 questions
1
vote
1 answer

How do I count non alphanumerics in a text document with Python?

Here is my code. I'm having trouble figuring out how to make my program count non alphanumerics. I am a new coding student so go easy on me. infile = open("Gettysburg.txt", "r") data = infile.readlines() non_alpha_num = 0 uppercase_count =…
Jake
  • 25
  • 5
1
vote
0 answers

Cannot record alphanumeric characters with pynput python

How to keep track of alphanumeric characters and non special characters (space bar, delete, tab, etc) in pynput. I am using the below code. This code outputs only the special characters and not any other characters input through keyboard. from…
1
vote
3 answers

How clear duplicate consecutive non-alphabetic characters in a string?

Matching the string only for: ,.:- how I can remove duplicate values from a string? For example having: "ab::::c ---------d,,,e ..........f ::a-b,,,c..d" Expected output: "ab:c -d,e .f :a-b,c.d"
Marcello Impastato
  • 2,263
  • 5
  • 30
  • 52
1
vote
1 answer

HTACCESS - Redirect with non alphanumeric characters

I have a website linking to mine with a really badly formed URL: http://my-example.com/
. It looks like the developer of the site linking to mine has messed up their coding and has let a line break tag end up in the middle of href attribute of…
Jamie
  • 47
  • 12
1
vote
1 answer

Find word in a text tath can be start with non alfanumeric character

I need to find word ( I know it) in a text of any lenght, like the following. My text is very beautyfull. Yours $text is very bautyfull. Their #text, is very beautyfull # and $ are only sample. I can have any non-alphnumerical character I have…
theShadow89
  • 1,307
  • 20
  • 44
1
vote
4 answers

How to exclude the words that have non-alphabetic characters from string

For example, if I want to delete the non-alphabetic characters I would do: for (int i = 0; i < s.length; i++) { s[i] = s[i].replaceAll("[^a-zA-Z]", ""); } How do I completely exclude a word with a non-alphabetic character from the string? For…
user3383621
  • 203
  • 5
  • 14
1
vote
1 answer

postgresql copy command delimiter non aphanumeric character

I am facing issue while copying a file which is delimited by §. The database version is 9.1 File content are as below: a§b§c 1§4§5 Copy command: copy test.test_ingestion (a,b,c) from 'b.csv' CSV HEADER DELIMITER as E'§'; Error : invalid byte…
1
vote
0 answers

Dynamically set asp.net login password requirements

I have multiple companies using my website. A few of them are complaining that their customers can't understand what a non-alphanumeric character is (though we give examples in bright red letters) and want us to ease our password requirements. We're…
thchaver
  • 331
  • 5
  • 14
0
votes
1 answer

WooCommerce billing and delivery address - disabling use of special characters

I need to disable the use of special characters in WooCommerce completely. I have managed this in the Billing and Shipping names, but using the following code, but I also want to included the same check in the billing and delivery address…
0
votes
3 answers

Python voltage input

`Hi, I want to write a code to get inputs for both integer and float numbers but only numbers. If float number is given it accepts dot but not any other nonalphanumeric characters. I wrote this code but it gives "Please enter the Frequency value:"…
oznurc
  • 33
  • 4
0
votes
1 answer

How to remove leading and trailing non-alphanumeric characters of a certain string in python using regex?

How do I remove the leading and trailing non-alpha characters in a given string, before and after a certain substring? See the example below input_string = m#12$my#tr!#$g% output_string = m12my#tr!g The substring, in this case, is my#tr! How can get…
Mad
  • 435
  • 2
  • 17
0
votes
1 answer

Is there a way to create GoogleTest paramaterized test cases that contain non-alphanumeric characters?

I'm performing some validation tests on several XML files, some of which contain hyphens in the name. I've created a parameterized test case containing the file names (excluding extensions) but GoogleTest fails because Note: test names must be…
Rhombus
  • 134
  • 9
0
votes
2 answers

How can I select all records with non-alphanumeric and remove them?

I want to select the records containing non-alphanumeric and remove those symbols from strings. The result I expecting is strings with only numbers and letters. I'm not really familiar with regular expression and sometime it's really confusing. The…
Min Sun
  • 7
  • 1
  • 5
0
votes
1 answer

Print only valid Alphanumeric Strings

Print only valid Alphanumeric Strings For example, the geral print is: Xô3†kЀ?ë±3!æq¥b. Parabéns, conseguiu. ñoÛD¦Ó¶Y˜…Û¬œ«÷ôQÂ. Ãý™448($vúiP±ÔÅã. ÝÆû4sÊìÏiÁLy[r¥…X°. But i need print only this line: Parabéns,…
0
votes
2 answers

Get the index of a non-alphanumeric-string in a list containing non-alphanumeric elements in python

I have a file (test.txt) like this: [06/Oct/2017:20:18:47 +0200] [pool-2-thread-7] http://10.12.214.20 [06/Oct/2017:20:19:38 +0200] [pool-2-thread-4] http://10.12.214.18 [06/Oct/2017:20:19:38 +0200] [pool-2-thread-4]…
sunjazz
  • 175
  • 1
  • 8