Questions tagged as 'regex'

1
answer

In Python django, if I want the regex to detect from 6 characters to infinity, [\ w -] {6, infinite} what is the quantifier?

url(r'^(?P<foo>[\w-]{6, })/$', view) In django if I want the regex to detect from 6 characters to infinity, {6, infinito} , do I leave it blank, or how should I express it? This way it works but I'm not sure ...     
asked by 07.02.2017 / 04:30
1
answer

As valid by jquery that my message field does not contain a space?

I want to validate my textarea so that you do not write a blank space at the beginning if( $("#comments").val() == "" || $("#comments").attr("value").match(/^/s+$/)){ $("#comments").focus().after("<span class='error'>This field is r...
asked by 27.10.2016 / 12:52
3
answers

Change letters of an html with function replace ()

I want to do something similar to what the lacuerda.net page does, where you have a music and you can turn it up or down tonality. I have my test page where I want to change the tone of the music. I've been testing with the function r...
asked by 27.06.2017 / 18:05
2
answers

Match a letter at the beginning of the string

I made the following code: import java.util.regex.Matcher; import java.util.regex.Pattern; import java.lang.Math; // headers MUST be above the first class // one class needs to have a main() method public class HelloWorld { // argum...
asked by 12.05.2017 / 22:45
1
answer

Find a character that is not a space or a letter, including accents and diacritics of Spanish

I want to include the space and only accept letters, numbers and accents and the special character > ñ . What I have done is the following: if (primernombre.length() == 0 || a.matches(".*[^a-zñáéíóúA-ZÑÁÉÍÓÚ].*")) { primerno...
asked by 04.01.2017 / 16:12
1
answer

Regex javascript password

Good I have this pattern created /^(?=.*[a-zñ])(?=.*[A-ZÑ])(?=.*[áéíóúÁÉIÓÚ])(?=.*\d){2,4}(?=.*[\$\/\.])[a-zA-ZáéíóúÁÉÍÓÚñÑ\$\/\.\d]{7,15}(?=.*\d$)/; And I must control this: size 8,16, alphabetic characters 2 minimum, with a capital letter...
asked by 13.02.2018 / 19:09
1
answer

Get the values of each cell of an HTML table with String.Split in vb.Net

Previous information: I'm making an application in which I copy part of the code of a web page (from a table of this to be exact) in order to put the information of this in a database. For that, he had thought about dividing the chain that the u...
asked by 26.04.2018 / 11:15
3
answers

Detect text between open and closed keys in javascript [closed]

How can I detect when a key { opens and when } is closed? What I want to achieve is to detect the opening and closing of the keys, but I would also like to be able to detect content within them. Example: {#f66} o {red} E...
asked by 28.11.2016 / 02:02
1
answer

Allow special characters such as @ #% & - + () / * "':;!? | ~ {} [] _ in password

What regular expression can I use to allow characters like these @#%&-+()/*"':;!?~|{}[]_ in php?     
asked by 03.07.2016 / 08:00
1
answer

Accept only all regular subexpressions

I have a word, for example, hola , and I want to make a regular expression that accepts all subexpressions. That is, you have to accept h , ho , hol and hola . For this I do ^(hola)|(hol)|(ho)|(h)$ Is the...
asked by 28.11.2018 / 21:11