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

I need to pull two values from a repeating string. I've got it working 99% but it's ugly.

Looking for a trick here if you see one.

/******************************************
I got a simple …

319 views
Free Tool: Path Explorer
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

I want to match a url  such that it allows "abc.def.com" but not allow the following:
"abc.def.com/123"
"abc.def.com/456/789"

Thanks

521 views

my regular expressions isnt' working...need one  for a POC form field that can include alphabetic characters [commas] [periods] and [spaces]

current regex is:
(CODE)

throwing an invalid …

933 views

I need a regex to allow letters, hyphens and spaces

225 views

Ive got an XML file which was written by a program and I cant get anything to read it, as its 12Gb in size I dont want to manually go through line by line trying to correct it. Ive managed to figure …

672 views

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 …

1646 views

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)

245 views

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

john
mary
site.cn
mario.com
sileson

229 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 …

233 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 …

242 views
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 …

440 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 …

566 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

233 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 …

279 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 …

240 views

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

248 views

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

1257 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.…

846 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 …

251 views
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 …

1254 views

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

1452 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 …

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

27124 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:

487 views

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:  …

569 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