Questions tagged as 'regex'

0
answers

Regex to validate phone number with vee-validate

I am using vee-validate for field validation, but my validation is not working using regex for a phone input. <the-mask name="phone" :mask="['(##) ####-####', '(##) #####-####']" v-model="$parent.user.phone" v-validate="{ regex:/(^\(?\d{2}\...
asked by 24.08.2018 / 15:12
0
answers

Remove accent through formula in Google Sheets

I need to remove diacritics (accent and cedilla) in the values of a column in Google Sheets. I know that it is possible and easier to solve this problem through an App Script function, but this is a very common situation for me, and I am not alw...
asked by 16.08.2018 / 23:25
1
answer

Remove WWW and HTTP / HTTPS with regular expression

Hello, I'm doing a script that inserts values inside a finance system, but when I enter it with 'www' 'http' 'https' gives error and I have to remove it in hand. So I want to put a regular expression that removes those values from the url before...
asked by 09.08.2018 / 21:31
0
answers

How do I include a str_replace in a preg_split regex?

The user types text in textarea (form html5) Before writing to BD, I replace if I have a line break, changing '.br' or 'br' to '.' $texto = str_replace(".<br>",". ",$texto); $texto = str_replace("<br>",". ",$texto); $grava-no-bd...
asked by 03.08.2018 / 22:34
1
answer

Regex to validate currency, fractional, accepting negatives

I will use it in Delphi 10.1. I was able to reach the expression below, but for lack of knowledge and practice, I'm not getting as far as I want. Regex: ^(^[\-]?[1-9]|0)(?:[0-9]{0,10}|0)(?:,\d{0,2})?$ I need to analyze whether the n...
asked by 17.07.2018 / 14:54
0
answers

How to search for generic text / phrases in a certain language?

I have a hundred ".jade" files that have several phrases in Spanish in a static way. I want to map and exchange these phrases for dynamic content based only on the language type (since I do not have a previous content dictionary). What would be...
asked by 29.06.2018 / 22:04
5
answers

How to validate with regex a string containing only letters, blanks and letters with an accent?

I want to validate an input text for full name in order to accept only letters, blanks and accented letters.    Valid Formats:   Leandro Moreira   leandro moreira   Kézia Maria   kezia maria   Cabaço da silva   Cabaço da Silva This...
asked by 14.05.2014 / 00:05
1
answer

How to import files using REGEX?

Good Afternoon Personal, okay? I have a question in regex in python. I want to create a script to open files without informing their format, being In this case, I would like to know the name of the image, without informing its format (i...
asked by 03.09.2018 / 21:24
0
answers

FILTER_VALIDATE_REGEXP - php HOW I can use

Hello, I'm starting with php and I've looked in their documentation, have a method called FILTER_VALIDATE_REGEXP and would like to know how to use it to accept only the alphabet. Thank you and I await.     
asked by 24.06.2018 / 16:22
1
answer

REGEX - How do I search for expressions that DO NOT contain a specific part?

I'm working with PL / SQL. Through REGEX, how do I find all expressions that are different from: <cod_orgao_destino>9577</cod_orgao_destino> Thank you!     
asked by 11.06.2018 / 21:59