Questions tagged as 'regex'

0
answers

How to block special characters from a "paste"?

I have the following problem, there is a validation being done this way: $(document).ready(function(){ $(this).on("paste", "#email", function(event) { var $obj = $(this); setTimeout(function() { var str = $obj.val()...
asked by 21.08.2017 / 22:26
1
answer

Substitution with thirst

I have to make substitution in some files and I can not write an expression that works. I have this text at the beginning of each line:    NF3-9-16S_S9_1456 | M02255: 210: 000000000-B9K3P: 1: 1101: 14397: 18152 1: N: 0: 9 | o: 50 | m / o: 0.7...
asked by 22.08.2017 / 10:43
1
answer

Regular expression to validate urls

I have a Web Crawler that takes links from websites, but it captures many links that I do not need. I would like a regular expression to filter the links found. And only links like these would pass. link link     
asked by 15.07.2017 / 00:45
3
answers

Identify repeated numeric characters in sequence

With expression [\d]{9} I can identify numeric characters if they are repeated nine times in sequence, however I only want identify if they are the same characters, for example: 111111111 // false 222222222 // false 333333333 // false...
asked by 05.10.2016 / 15:18
2
answers

Validate form inputs with regular expressions

I have contacts field in the page where the user must fill in, for example, the name, he should just type letters, in the phone field, just numbers and email required to use the "@". The idea is to display a message to the user when they enter n...
asked by 20.06.2017 / 06:09
1
answer

Remove CSS link with Regex

Good morning, when pulling the html from the entire page in string it also brings some reference links: <link href="~/Content/item/item.min.css" rel="stylesheet" /> I've already removed the tags and, but I need to remove this and I'm...
asked by 15.03.2017 / 14:46
1
answer

Mount RegEx to change string json

I have the following string, which will actually be treated as a json , stored in a column in the database in my SQL Server : {"PT":"adssadsadsd "asdada"","ES":"","FR":"","EN":""} How do I automatically change the string to lo...
asked by 01.03.2017 / 16:52
1
answer

Virtual Configurationhost

I have a question in the configuration of VirtualHost , I have an application that has redirect to several cores eg: meusite.com.br/app/go meusite.com.br/app/rj When accessing meusite.com.br/app , it redirect...
asked by 21.02.2017 / 13:59
2
answers

Problem with regular expression in asp.net with angularJS (1)

On this site, I got this regex : @"^\(?\d{2}\)?[\s-]?[\s9]?\d{4}-?\d{4}$" Then I tried to adapt to my reality, my rule being: Only accept digit (number) in the input. I'm not that stuff with regex , I have trouble with it. I did...
asked by 07.10.2016 / 18:01
1
answer

I need to create a regular expression to validate a CamelCase

Good morning, everyone, I hope you can help me. I need a regex or even an idea how to insert a space for CamelCase expressions. In other words, insert a space for each capital letter of the word. In java ...     
asked by 15.09.2016 / 00:58