Questions tagged as 'regex'

2
answers

What is the regex to validate only dots, numbers, and commas?

What is regex to validate only periods, numbers, and commas?     
asked by 03.10.2017 / 19:12
2
answers

Get DDD in (11) with regex

I need to get the DDD that is among the Parisians: (11) 9.9999-9999 I tried to make a regex but I did not succeed. I'll use PHP to get it, but I needed a regex for it. Someone could give me a hand.     
asked by 14.06.2018 / 02:18
3
answers

How do I check if a value starts with a slash followed by a message?

I get a value like this: /{mensagem} and if it was different (I did not have / before {mensagem) , I wanted it to return error. {mensagem} serves as variable and can not be changed.     
asked by 27.11.2014 / 16:45
3
answers

How to capture only a specific part of a string?

Using regular expression, I would like to capture only the value inside a tag: <txt_conarq_assunto></txt_conarq_assunto> Example: Entry: <txt_conarq_assunto>A classificar</txt_conarq_assunto> Output:...
asked by 09.05.2018 / 18:33
3
answers

How to mount the regular expression below

I'm trying to set up a regular expression and I'm not getting it. How do I set up a regular expression that accepts only numbers, slash, and hyphen?     
asked by 11.05.2016 / 14:14
4
answers

Validate facebook profile URL

How can I validate a facebook profile URL and get the user id? Examples:    link link And the other variations: htttps://facebook www.facebook And get the value of the id, from the examples, would be:    walterwhite and xxxxx...
asked by 20.09.2016 / 19:16
2
answers

preg_match returning 0

Good afternoon, I have a string that I get from the database <!DOCTYPE html> <html> <head> </head> <body> <div> </div> <div> </div> <div> <h3> </h3> <p> </p> &...
asked by 27.09.2018 / 22:49
2
answers

How to get only numbers in parentheses in Python with regular expression

Texto = "54 oz (163 g)" I want the result to be only 163     
asked by 09.04.2018 / 05:41
0
answers

Save data to excel file through Outlook

I've created a Rule , which every time an email arrives with a certain text in subject runs a scrip and store certain data in an Excel sheet. Code: Option Explicit Sub CopyToExcelMacro() Dim olItem As Outlook.MailItem Dim xlApp...
asked by 14.11.2014 / 11:23
1
answer

How to create this regular expression?

I need a regular expression that accepts only [ , ] , - and letras and números to be used as follows: Rules The first character is [ , then comes letters numbers and - and ends with ] ....
asked by 15.07.2016 / 15:08