Questions tagged as 'regex'

1
answer

Interval of integers in regular expression

I was solving something and I found this test and I do not understand well what is happening. Doubt is, it shows me 3456'7 'Why does 7 appear on the exit if I am delimiting [3-6] ? What is prevailing over the limit that I put in brac...
asked by 29.07.2018 / 22:21
2
answers

error regexp django urls

Why Django does not recognize my url? my urls.py from django.urls import path from home.views import homePageView, activateUser urlpatterns = [ path('',homePageView.as_view(),name='home'), path('activate/([a-zA-Z0-9]{15})/$', act...
asked by 26.06.2018 / 19:27
1
answer

How do you replace the letters?

This code replaces the string passed to the function in this way: Returns it in capital letters Returns each letter replaced by the letter that follows it in the alphabet But I do not understand how some parts are made, comenté...
asked by 24.09.2017 / 21:40
2
answers

Extract emails within a text string

I need to get the list of emails from a text string. I have tried several ways and nothing turns out. If anyone of you could help me, I would really appreciate it. Here is my code: string patern = @"\[A-Za-z]+@[a-z]+\.[a-z]+\"; string input...
asked by 01.06.2017 / 18:45
1
answer

How to control special characters when uploading a map?

Can you control that when uploading a flat file, if one of the rows has characters such as: !@#$%&/(/() , the system will perform some validation? I am trying to update a record and I need to do the aforementioned validation. I was...
asked by 09.05.2017 / 18:55
1
answer

Problem when validating that only fields with letters exist using regex

I have a method that validates the input formats and inside I have a regular expression that only accepts letters from the a-z. The problem is that I try it with only letters but it does not work, it returns false in the first if. I leave...
asked by 08.02.2017 / 20:14
1
answer

Delete the text between the keys of a username

I have a game like agar.io and PIELES are used. The skin is put in the player's name with { ... } . That is, {nombreDaLaPiel} Nickname . The function that hides the name of the skin so that it can not be seen in the...
asked by 29.01.2017 / 17:42
1
answer

Rewrite to delete the ID of a url in wordpress

I have some addresses indexed with the ID-slug format, and I wanted to create a rule for nginx that would remove the ID https://misitio.es/12-titulo-del-post-uno https://misitio.es/45-titulo-del-post-dos https://misitio.es/56-titulo-del-post-n...
asked by 09.01.2017 / 08:48
1
answer

Using RegExp in JavaScript to simulate a wildcard search

Good day, I have a problem, I'm working with JavaScript, I have a function that runs through an array, but I need you to find matches within the array, for example, in the text "Carlos Daniel Zárate Ramírez" find "Carlos Zarate", which imitate t...
asked by 14.12.2018 / 17:13
1
answer

Oracle REGEXP_SUBSTR to SQL Server?

I want to convert the following to MS SQL Server : REGEXP_SUBSTR(m.DESCRIPTION,'CATEGORY=([^,]*)(,|\Z)',1,1,'c',1)     
asked by 17.10.2016 / 19:15