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.

Related Topics

  1. PHP
  2. C#
  3. Perl
  4. JavaScript
  5. .NET Programming
  6. ASP.NET
  7. Programming
  8. Visual Basic.NET
  9. Java
  10. Shell Scripting
Refine results

Hi,

  I have a huge text file which i opened in Notepad++.
I want to find the words starting with SP_ and ending in a space.
Then i would like these words to be all listed into a column.

how …

1617 views
Free Tool: Postgres Monitoring System
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I am using the following to accept only 0 or 10 digits, but I need to change it to allow 0, 10 or 13. Can someone assist?

(CODE)

222 views

regex code ( i use windows 7)  to remove .cn and .com  , thank you

john
mary
site.cn
mario.com
sileson

210 views

I would like to know how to write a regex which does not allow strings ending with dev, qa, prd, staging and the string should be only lowercase.

for example

abcqa not allowed
xyzdev not …

216 views

I am trying to make a regex but i'm not very good at it
I am trying to make a regex which starts with Uppercase V and then next two characters should be UPPERCASE alphabets .

Then remaining …

223 views

Hello,

I have some HTML code that looks like:

<img src="/global/images/icons/tip.gif" height="16" width="41" alt="Tip" border="0" align="left">This is some text.

I need to find any HTML tag …

418 views

If I was to use the following regex, /\d\d\d\.\d/g, I can get a three digits number with a decimal 555.1, etc., but if I want to specify an input range a user enter, and that these number will always …

537 views

Hi, I want to extract "Towel bath" from the following example, where the start identifier is the first x and the finish is " L " (space L space)

7339700 5xTowel bath L 31/3-5/4 16.75 20.00 13.96

217 views

I'm writing a software that converts text to HTML and also  I use the regular expression. I wanna know how to identify paragraph in the body of text?
I wrote a snippet of code for identifying …

256 views

Hi

I am using Microsoft Access.

I need to parse a string which contains multiple lines.
I would like to use Regex to
1) Change all line feeds to "##!##"
2) Remove all other non printing …

224 views
Free Tool: Subnet Calculator
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

need a regex code for:  password 8-20 lenght , 1 number and 1 letter , 1 uppercase and 1 lowercase

226 views

I need the code to extract  Url from string asp Reg Exp

1241 views

Hi

 The code below does not work properly.  I am using Microsoft Access VBA.   When the code works properly,  the variable
 strAnswer  =  "Line 4:Line5" with the nonprinting characters preserved.…

829 views

I have a string similar to the one below and I would like to use a RegEx command to only identify the last 4 characters.

\\safasda\asdads\asdasd\asdas -t 40 -g 30kjnas -y 1234

Can someone help …

229 views

Hi
I am looking to get the customer's name  from a multi-page computer generated document.  In these documents, then name of the customer always follows the pattern shown below.  


1) Customer …

1232 views

I need to search and replace this phrase "http://cl.exct.net/?qs=bce38cfd33329019b3586d9543709eaf3e2e7782f06d48a901169a2bc1f42daeaab67258f1fe77e788419dc2a282f5e8" in CC Dreamweaver. after qs= those …

1436 views

Hi experts,

I've worked on this for a couple of days and I am stuck. Here's the scenario:

I have some incoming emails with data that I want to parse and insert into Excel.
I am using regular …

755 views

I need a RegEx that Requires two words and both are case insensitive.

What's the RegEx? I will use this in Visual Studio to search for two words

Thanks.

2789 views

I've few HTML pattern that i would like to capture from a single RegEx expression, but i have difficulties to find the proper expression because some part are optionals.

Yet i've this Expression:

458 views
Announcing the Most Valuable Experts of 2016
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

I have the following regex   /^\d{1,3}$/  which is supposed to test for a 1-3 digit number but when I use an online regex tester it doesn't seem to work. What am I doing wrong? See test link:  …

550 views

I need to test if a variable is any one of the following:

botwsitecoredevcms
botw-web
accountopening
wuatlive
wuat2live
wuat3live
testlive1
testlive2
testlive3
testhoplive1
testhoplive2

646 views

Hi folks.

I am in need of some help to parse a file named input.log  It basically looks like this:

Server:            200.200.200.200
Address:      200.200.200.200#53

** server can't find …

11111 views

I want to  allow only numbers and decimal point.  For example 11 or 12.5

No alpha characters.

I tried these 2 regular expressions. They don't allow any alpha except for letter e.

Why? Is …

1460 views

the words must be 6 to 8 characters long and may not contain spaces??

list:

mamamia:lamina1
mer:1234567
acmilan:abc
internazionale:abcd1234
internazionale:abcd123456
mariano:1234567!

235 views

I am trying to use a regex that will turn

"CN=Substitute Staff Group,OU=Roles,DC=domain,DC=org"

into

"Substitute Staff Group"

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

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.

Related Topics

  1. PHP
  2. C#
  3. Perl
  4. JavaScript
  5. .NET Programming
  6. ASP.NET