Questions tagged as 'regex'

2
answers

Regex to get numbers between the second and third "/"

Let's say I have the following String / Product / 976935 / How would I do a regex to return only the numbers between the second and third bar? The number of numbers varies so it does not matter to return only the numbers     
asked by 12.03.2014 / 13:39
1
answer

.test () (js) equivalent in php

In JavaScript, we have the function test() , for example: /Test \[(\d+)\]/gi.test(string); // Pode retornar true ou false. Does php have a similar function?     
asked by 31.12.2017 / 21:52
2
answers

Replace numbers that are within a word

I want to remove numbers in the middle of letters, but I do not want to remove all numbers from the text, for example: Vini12cius I want to transform to Vinicius , but without changing a possible CPF that will come after, I created th...
asked by 31.08.2018 / 20:49
1
answer

Capture data to space, regex

I'm using this regular expression to capture data between asterisks: \*(.+)\* however, it mistakenly captures when the text is filled with asterisks, for example: oi pessoas *lindas* e pessoas *lindos* It understands only asterisks ou...
asked by 18.02.2018 / 13:46
1
answer

Put the first letter of each word in uppercase

I want to standardize what the user typed in edittext, placing the first letter of each word in upper case and the rest of the letter lower case. How do I do this? The part that directs the variables in the model class Contato c = new Conta...
asked by 15.09.2017 / 00:49
2
answers

How to create a regular expression

I have the following div with information <div class="endereco-item"> <h2 class="azulclaro identify">Casa</h2> <div class="entrelinha_0"></div> <div class="font_15"></div> <div class="fo...
asked by 08.11.2017 / 02:53
2
answers

fill input from right to left

I need two input that I have in an app to be filled from right to left ... One of the inputs is value in reais (R $) and the other is value in milliliter (ml), I'm using a jquery mask (a MaskMoney works fine rather than mobile, so I...
asked by 11.01.2017 / 14:41
2
answers

How to allow a regular expression of letters and numbers to accept the cedilla

I need the regular expression to accept the ç key. $('[name="txtEndereco"]').keyup(function () { this.value = this.value.replace(/[^a-zA-Z 0-9]+/g,''); });     
asked by 14.02.2017 / 22:12
1
answer

Regex Custom Creation

Hello,
asked by 14.11.2017 / 12:07
2
answers

Regular Expression Building Help

For the string identified below, I needed to get the ABCD value by using a regular expression, I need help to construct this regular expression. Team(\\'ABCD\\')     
asked by 05.01.2018 / 18:54