Questions tagged as 'regex'

1
answer

Problem using RegExp and replace [duplicate]

I have the following problem, I am replacing text in a paragraph but when I find special characters like (* ,? or others) instead of replacing it, it adds it. I leave the code to see if you can help me.    Note: here I only put a small ex...
asked by 27.04.2017 / 17:43
0
answers

Django Rest Framework - Allowing blanks in a CharField

I have the following model, which in its attribute name I want to allow compound names or blank spaces, for example Real Madrid class Team(models.Model): name = models.CharField( _('name'), max_length=30,...
asked by 03.05.2017 / 05:13
1
answer

Regular expression to substitute (VIV6a = 1 or VIV6b = 1) and (COUNT ("A3"; "13") = 0 or COUNT ("A3"; "14") = 0)

I have this syntax: (VIV6a=1 or VIV6b=1) and (CONTAR("A3";"13")=0 or CONTAR("A3";"14")=0) some regular expression that gets me the following: (VIV6a=1 or VIV6b=1) and ( =0 or =0) For c # The idea is to be able to change the expressi...
asked by 23.05.2018 / 22:54
1
answer

How to remove brackets with regexp? [duplicate]

Here " banned " words are deleted, but if that word has brackets, it does not remove the brackets. What should I do? var palabrasProhibidas = ['palabra-vulgar','[palabra-vulgar]']; var numeroPalabrasProhibidas = palabrasProhib...
asked by 04.06.2017 / 20:36
1
answer

What is the regex that the boostrap datatable uses by default?

I would like to know which is the regex that the search box uses in the boostrap datatable, which is by default when we assign it to our table, since I would like to replicate it in a query that will obtain that same information from the table a...
asked by 25.10.2018 / 20:20
4
answers

Modify links that contain a [closed] image

I'm trying to find in HTML all the images ( <img> ) that are contained by a link ( <a> ). The expression that I have achieved and works more or less well is: '/<a.*?href=\"(.*?)\".*?>(<img.*?src=\"(.*...
asked by 24.07.2017 / 09:52
1
answer

Regular Expressions in Java

I need to please see if anyone can help me extract from a pdf one using regular expressions in Java the school pattern as shown in the image. I'm currently trying to extract in this way and it does not work for me. Thank you very much for your h...
asked by 05.08.2018 / 07:34