Regular Expressions

6K

Solutions

7

Articles & Videos

5K

Contributors

A regular expression ("regex") is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. "find and replace"-like operations. Regular expression processors are found in several search engines, search and replace dialogs of several word processors and text editors, and in the command lines of text processing utilities, such as sed and AWK. Many programming languages provide regular expression capabilities, some built-in, for example Perl, JavaScript, Ruby, AWK, and Tcl, and others via a standard library, for example .NET languages, Java, Python and C++ (since C++11). Most other languages offer regular expressions via a library.

Refine results

If I have two RegEx how do I properly join them in one?

(CODE)

30 views
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

I have two different strings, and need to identify the RegEx to use in order to find all occurrences matching a specific pattern.

Scenario #1:
Content of the input string:
Schema="[dbo]" Table="[…

410 views

Hello, I want to only allow an input if it satisfies the following, can you please advise on a suitable regex expression.

Less than or equal to 8 characters
Does not have a preceding or following …

921 views

MS ACCESS 2010
I have a table with a field called CodeLineTxt.  That needs to be pasred into fields LineNbr and LineTxt.

Using a query and RegEX how can I Do this?

I need to get the numeric val…

317 views

I've a hard time understanding how URL rewrite work and need your help.

I want to set a server variable "HTTP_BRANDING" to some value, then redirect to another page which is showing ServerVariables…

321 views

Given the following input:
(CODE)
A basic split would be like this:
(CODE)
But that splits on every comma and produces the following output (each line represents a single item in the array):

723 views

Regex code:separate email:ip from email:pass ?

624 views

I had this question after viewing Date input validation (Regular Expressions) (https://www.experts-exchange.com/questions/28985569/Date-input-validation-Regular-Expressions.html).

Hi guys,
I have…

421 views

I have a text .  I want to extract all phrases delimited by ? No problem

^?]+

But I need to exclude phrases with a certan word (f ex  monkey)

Example:

Central 543312,yrttt ?My firend? 2332…

311 views

Hi guys,
I need to validate date input in range Day / Month / Year
    01/12/2016
Any chance to include ranges of
  days    (1-31) or (01, 02, 03, 04, 05,  . . .  31)
  month (1-12) or (01, 02, 0…

118 views
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Hi, I have a file with a large number of character conversion errors and all non-ASCII characters were converted to question marks - "?" - so there are a number of instances of such strings as: Jos?, …

219 views

How to filter this IP only?

89.35.24.74     7 msmta9.newcombo.net  
89.35.24.83     8 msmta18.newcombo.net
12.35.24.83     8 msjohn123
100.200.30.20  rapasins

Output:

89.35.24.7
89.35.2…

425 views

I have a file that is riddled with words containing HTML character codes & entities such as: Müller, Étre or "Flying—High" -- however, there's also a lot of junk ones that nee…

742 views

So, I am parsing text in C# that is formatted like so:

WEEK_OF_{%yyyy-MM%}

I need to extract what is between {%...%}, format a date according to its date-format spec, and then replace the {%...%…

628 views

HI have a large Selenium Python 3.5.2 32 bit script running on Windows 7.  However, I only need to focus on the part that uses control a to select the source code of the page copy it to pyperclip perf…

2482 views

regex code to filter this thip of combo email,is possible to do this?

(CODE)

1'st output:
awhitcomb@gmail.com:0x77E61D83DD3D2961059CC734E58E644852D172CC

2nd output:
aberw:0x77E61D83DD3D2961…

4243 views

I downloaded and installed awk for windows then i try to filter a huge combo list,at line 847.000 stops,here why
here the code i use: (CODE)

this is the input:

(CODE)

output:

(CODE)

Ho…

1220 views

(CODE)

output:

emilywhittaker25@yahoo.com','emily

315 views

how to filter email.ro:pass?

all domains.ro:pass
thank you

525 views
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Regex code to filter email:The password must be contain at least one capital letter and two numbers ??
thank you

1621 views

From within Java, I want to search an external text file called log.txt, starting at the bottom of the file, and read backwards, reading a word at a time, until I find a string sequence that starts wi…

1145 views

How to extract some specific names,words etc  from a big txt file  , ex.:

output
Adina
adina@123
adina#123
adina123456
Adina01
etc

i tried this but extarct also: .*[Aa]dina.*

madina
a…

322 views

do u know a regex code to filter this?

63aae68d15628c9a4ed427171bc68885f719308c
1e722a71058df2c92891bd788d6195c9
werwr132edessr4e5646t56rdgdr565y6

output:

1e722a71058df2c92891bd788d6195c9

620 views

Please can I have a regular expression to allow alpha numeric characters plus a \ sign.
I'm using a web form in vb.net.  This validation is not being done in JavaScript.

222 views

Do u know a a regex code to filter this?i use Word List Updater 2.7
only clean Ips

5.2.128.20
5.2.128.45
etcc



(CODE)

227 views
Show more content
201506-LO-Top-001
Top Experts In
Regular Expressions

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. PHP
    (117,271)
  2. C#
    (91,132)
  3. Perl
    (25,947)
  4. .NET Programming
    (131,552)
  5. JavaScript
    (118,892)
  6. ASP.NET
    (123,029)
  7. Programming
    (51,882)
  8. Visual Basic.NET
    (91,873)
  9. Java
    (98,634)
  10. Shell Scripting
    (9,783)