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

Please I need a reg ex that will do Money without the $

numbers only
commas in right place
2 dp
no $

519 views
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Hello Everyone,
I am looking for a function that when passed a number format as a string (e.g. "mm/dd/yyyy") returns True or False depending on whether the string is indeed a valid number format.  Ob…

617 views

I need help with a regular expression.  The following expression identifies strings of 4 bytes or more.  However, it does not seem to work when the string has a special character like "-".  

\w{4,}…

313 views

I am a newbie with regular expression, need expert advise to improve pattern and make it short.

Sample Text which I am trying to match is
(CODE)
Pattern which I use is..
(CODE)

PowerShell Sc…

317 views

I have button like this.  It allows comma separated values.  
How can I check to make sure that no individual value is more than 4 characters?
Ideally, I'd like to check that all the values are alph…

625 views

Please can I have a regular expression for C# to allow alpha numeric characters plus the following:
( ) & = . / , : ' + -

I tried this which seems to work unless the forbidden character is last.  …

1216 views

Hello I followed this tutorial to execute a .bat from server side:

http://codebetter.com/brendantompkins/2004/05/13/run-a-bat-file-from-asp-net/ (http://codebetter.com/brendantompkins/2004/05/13/ru…

624 views

Hello I´m using a a VBscript to search 2 strings in the middle of one.

(CODE)

In this test the script need to search for strings "\activ\" and "\vid"

Now I received the error when I run the V…

213 views

If I have strings such as these:
1.  AB-123
2.  AB 123
3.  AB-123-1
4.  AB 123-1
5.  AB XYZ-1

I need a regular expression that determine if the end contains /\-\d+$/ and only #3, #4, and #5 to…

117 views

I need to replace a tag by another one, but keep the text in between, i.e. change <tag1 whatever>some text</tag1> into <tag2 whatever>some text</tag2>. Is this possible using sed?

215 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 am having difficulty validating a text input in a form.

The entry needs to be either LYBLA000000X (LYBLA Fixed, 000000 any combination of number less that 200000, and a fixed X) or TMP0000…

1435 views

I use this tool,Word List Updater 2.7:


All i want is to filter(exclude) all email domains and this type of chars: ®©�ØÇÖÄüèöµÃ‖|¦ and include this: :^/\\,.+ .;
The code bellow exclude this too:…

2439 views

Hello,

I search to remove two string like this in a script file
(CODE)
I try the following without good result
(CODE)

Why?

Thanks

1052 views

Hi,

I'm looking to fix this formula so that it works as follows in google sheets:

Regex expression: \(.*?\)

Input: Jessica (M4KYYF)
Expected output: M4KYYF
Actual output: (M4KYYF)

Exampl…

826 views

I have a value that will be typed in a win form for the root value of an network share.

For example they might type
\\RootShare\Par4\

I might have this stored in the database as such as varcha…

1827 views

Hi all,

I am using taffy which is for building webservices in coldfusion. However accessing the webservice has to do done via:

/myapi/index.cfm/people
/myapi/index.cfm/homes


This doesn't f…

137 views

I have a regex pattern that picks up on strings containing a number followed by a letter or letters, but I need it to pick up on strings where there is a space between the number and the letters that …

221 views

Hi.

I would like some help with a pattern for a regular expression.   The string that I need to find will always have 3 or more "/" characters in the string surrounded by alphanumeric characters.  …

218 views

I had ran into an issue previously where my regex expression wasn't allowing periods in the name for emails.  for example, my.email@gmail.com wouldn't work.  Thanks to the fine experts at Experts-Exch…

425 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.

I need help generating a Regex to test the following (I admit I am no good at this):
Up to 5 digits, and an optional 6th Alpha Only character.  So the pattern would be:
0
01
012
0123
01234
0123…

322 views

I'm trying to parse an Oracle TNS Names file. It looks something like this:
(CODE)
What I need to be able to do is come up with a regular expression that will allow me to identify the TNS Name and t…

3054 views

I had this question after viewing Python error - Need Help (https://www.experts-exchange.com/questions/28961942/Python-error-Need-Help.html).

I created this regex to remove the duplicate rel="nofol…

349 views

I am using Angular-JS and have the following expression, which checks a password input for 1 upper case letter, 1 lower case letter, 1 number, and one special character.  However, I need it to check f…

238 views

(CODE)

How to take into account ". " ( dot ) at the end of the sentance ?
For example :
Initial input : "London is the capital of Great Britain."
Expected output : "Britain is the capital of …

750 views

Argh... been going in circles.  Can someone please provide a Perl regex to replace all capital letters in a string that are not preceded by ">"

e.g. <b>A</b>ll Good Boys <b>D</b>eserve Favor

I w…

642 views
Show more content
201506-LO-Top-001

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. PHP
    (116,758)
  2. C#
    (90,842)
  3. Perl
    (25,921)
  4. .NET Programming
    (131,248)
  5. JavaScript
    (118,474)
  6. ASP.NET
    (122,806)
  7. Programming
    (51,752)
  8. Visual Basic.NET
    (91,580)
  9. Java
    (98,408)
  10. Shell Scripting
    (9,704)