All Questions
3,919 questions
-6
votes
1
answer
91
views
How to Regex InnnerHTML value to input text from copied InnerHTML Value to input text? [duplicate]
How to remove leading zero and kg from copied innerHTML to input field text?
from 0000300kg to 300?
Html
<button class="tmbltimbang" id="timbangmuatan" onclick="bruto()&...
2
votes
2
answers
79
views
Removing Last Text Parentheses Using jQuery From a String
I am trying to remove the text from the last parentheses within a string using jQuery. I am able to remove the parentheses from the string but the code removes every parentheses and I need the last ...
2
votes
3
answers
68
views
RegEx Javascript: How to replace all instances of "non-white space character + CR + LF" with, "white space character + CR + LF"
I'm passing a string with jQuery, but it throws an Invalid or unexpected token error anytime there's a CR+LF without a leading white space in front of it.
I'm trying to use the js function replaceAll()...
0
votes
0
answers
65
views
Select2 ajax based results filtering based on regex on client and server side
I have implemented select2 in codeigniter for ajax based results and its working perfectly. But the challenge I am encountering is that the data in database is not sanitized e.g
E.C.G Machine
ECG ...
0
votes
1
answer
481
views
Check the email input validate the business email only (eg:[email protected]) not accept the other public provides
I want to not accept @gmail @yahoo @bing @yopmail @aol @any_other_public_providers ,,I want to accept valid company emails
If you want to ensure that the email address doesn't have the domain "...
0
votes
2
answers
355
views
Allow special characters and spaces in text field
I have this text field where allowing only characters
I want to allow special characters and space in the same onkeypress event.
<input maxlength="30" class="form-control" type="text" ...
-1
votes
1
answer
85
views
Email Verifcation using Regex
I have problem with my email regex
its not allowing this type: [email protected]
it doesn't allow "_" symbol (underscore )
i want to be able to validate emails in this format too
a_a@domain....
3
votes
1
answer
88
views
How to solve JS Regex not working during keypress
I have some requirement as below:
Minimum character is 3 and maximum is 8.
Only accept Capital Letter and Underscore.
The 1st three (3) characters must be Uppercase.
Example acceptable input: "...
0
votes
0
answers
37
views
Jquery match element with matching pattern id [duplicate]
I have an element with id shipping_method_0_some_name_here.
The element will always have this pattern, only the number in the middle will differantiate, and there will always be only one element like ...
1
vote
1
answer
59
views
Regex for new line not working in textarea jQuery
I am trying to convert returned output copied from router that consist of multiple \r\n to new line to be as pretty result configuration with indention for user viewing from UI. However my script ...
0
votes
1
answer
43
views
Repeating the same code for all the input boxes so that they show the error
I have several input boxes on my page. These are two of them. I want to restrict the user to enter only digits in the input box.
<input id="address1" class="work" /&...
1
vote
0
answers
30
views
JQuery UserEdit page password checking issue
"I want to change the password to include at least 1 uppercase letter, 1 number, and be at least 7 characters long in the user information editing section. In the code I wrote, when I click on ...
2
votes
2
answers
1k
views
how to write below regex without catastrophic backtracking [duplicate]
I'm trying to use a regex in javascript where special characters and leading and trailing spaces are not allowed in an input element. Maximum character length is 50.
The regular expression I'm using ...
-1
votes
1
answer
59
views
Create a Regex to to check for two Alpha and 4 Numeric values
Hi I am trying to create a regex so it validate the following
Should be 6 character long, should start with AT or UN + 4 digits from 0 to 9. No restriction on digits.
So it should be AT1234 or UN1234. ...
0
votes
1
answer
193
views
Word search on a data table
Need help with a word search on a data table. I'm not very experienced with coding.
I have cobbled together a search on a column of last names and it works fine.
I would like it to start the search ...