Skip to content
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

Open
wants to merge 2 commits into
base: feat/n-a-h
Choose a base branch
from
Open

Nah clase7 #64

wants to merge 2 commits into from

Conversation

Nahv23
Copy link
Collaborator

@Nahv23 Nahv23 commented Oct 21, 2020

No description provided.

Copy link
Collaborator

@totegsito totegsito left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants