Regular expressions (often shortened to "regex") are a declarative language used for pattern matching within strings. Please also include a tag specifying the programming language or tool you are using.

learn more… | top users | synonyms (6)

1
vote
0answers
9 views

Regex to validate domain name with port

I am new developer and don't have much exposure on Regular Expression. today i assigned to fix a bug using regex but after lots of effort i am unable to find the error . here is my requirement. my ...
0
votes
2answers
29 views

EditText validation not working

I'm having trouble with validation input from EditText. Whenever I click on SaveData button, the dialop popup no matter what it is valid or not. Here is the sample what I wrote: Validation class: ...
3
votes
2answers
11 views

Performance of regexp_replace vs translate in Oracle?

For simple things is it better to use the translate function on the premise that it is less CPU intensive or is regexp_replace the way to go? This question comes forth from How can I replace brackets ...
1
vote
2answers
25 views

Java regex - replace substrings between delimiters with same substrings without delimiters

I'm trying to figure out how to replace with Java 1.6 in strings like hello ${world }! ${txt + '_t'}<br/> ${do_not_replace any substring identified between '${' and '}' with the same ...
-4
votes
4answers
34 views

Regular Expression to get the record number from the String in Java?

I need regex to extract the record number from the string below, String extract = "Purchase Order HDL/17-04-2013/PRO_1311 is saved successfully" Output: HDL/17-04-2013/PRO_1311 I tried googling, ...
-3
votes
2answers
19 views

How to check for a number in a string using perl

I have a string in a variable $vreponse and the string is int.force_snmp_version T_SIZE 3 All I want to do is verify if there is number 3 in the string. If the verification is success print a ...
0
votes
2answers
43 views

How to Check a String in Java with an Zero Character RegEx?

The following piece of code checks for same variable portion /en(^$|.*) which is empty or any characters. So the expression should match /en AND /en/bla, /en/blue etc. But the expression doesn't ...
0
votes
2answers
28 views

bash: !.url": event not found while extracting filenames

I am trying to extract filenames with .url extension using $name =~ s/\.url$//;. However, some of the names contain an exclamation mark just before the extension, e.g.: "for example-this!.url" ...
0
votes
2answers
51 views

Java: regex replace string

Consider the following String: s = "Ralph was walking down the street, he saw Mary and fell in love with her. Judy loves her hair." I've got an ArrayList<ArrayList<String>> anaphora ...
1
vote
2answers
50 views

Need to identify the non-matching character in regex

We use a regex to test for 'illegal' characters when a user provides a 'Version Name' before we save their content. The accepted characters are: A-Z, 0-9 and blank space. We test this using the ...
1
vote
1answer
23 views

MySQL Regexp, ignore letters inside parentheses

I need to check whether a string contains all caps. However, it should ignore anything inside parentheses. Any non-letters are OK, too. These should give true: select binary "ALL CAPS" ...
0
votes
5answers
36 views

How to get value inside <a tag using preg match all?

i got html content that need to extract values inside hyperlink tag using preg match all. I tried the following but i don't get any data. I included a sample input data. Could you guys help me fix ...
-1
votes
1answer
28 views

Regex Python Extract Informations

I wonder if there's a way in python to be able to extract the informations from a line like the example below and put it in a table: table = [ Time: 01:09:25.258, O:Localhost, R:192.168.1.1 id:62 ] ...
0
votes
1answer
7 views

Generating XSD sheme for WAF with data restriction from WCF project

I'am trying to generate xsd scheme for waf (web application firewall) to validate requests coming from user side before they reach the service as second line of defense. In my web service i using ...
0
votes
1answer
31 views

How can I replace brackets to hyphens within Oracle REGEXP_REPLACE function?

I'm a newbie in regular expressions. I want to replace any text string symbols like (,),[,] to hyphens (for example): SELECT REGEXP_REPLACE ('(<FIO>)', '(', '-') FROM dual; This gives me ...

1 2 3 4 5 3784
15 30 50 per page