-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nah clase7 #64
base: feat/n-a-h
Are you sure you want to change the base?
Nah clase7 #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy buen trabajo! sólo un par de detalles y listo 😄
*/ | ||
|
||
|
||
const regexp = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W?)(?=.{8,16}$).*$/g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stack overflow! 😬
*/ | ||
|
||
const regexName = /<h3>([A-Z][a-z]+ [A-Z][a-z]+)<\/h3>/g | ||
const regexURL= /(https:\/\/www.fictizia.com\/app\/images\/[a-z]+[-][a-z]+.jpeg)/g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aquí hay una cosa muy triste, estarías marginando a todas las personas cuyo nombre tenga tildes 😢
6 Crear una función que utilice una expresión regular para identificar si el parámetro str que recibe es la letra de la intro de la serie Batman de los 60. Dicha letra, de dificultad manificestat, dice lo siguiente: Na na na na na na na na na na na na na na na na... ¡BATMAN!. Debe ser case insensitive | ||
*/ | ||
|
||
const regext = /^(na ){15}na... ¡BATMAN!$/gi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vamoh ya!
* Ejercicio: 8. Crear una expresión regular que valide que un DNI/NIE tiene formato válido. Un DNI se compone de 8 números seguidos de una letra mayúscula. Un NIE se compone de un primer caracter que puede ser X,Y o Z seguido de 7 números y acaba en una letra mayúscula. Puede llevar o no un guión antes de la última letra. | ||
*/ | ||
|
||
const regexp = /^([xyz](\d){7}|\d{8})-?[a-z]$/gi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cuidado aquí con el |, ahora mismo soportas una x seguida de 8 números 😅
|
||
*/ | ||
|
||
const regexp = /^https?:\/\/(\w)+[.-]*?(\w)*?.(com|es)/gi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
genial! sólo un detalle, más que especificar sufijos de dominios completos, lo suyo es que indiques simplemente que van de 2 a 4 caracteres
No description provided.