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 the code to extract  Url from string asp Reg Exp

1214 views
Free Tool: IP Lookup
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

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

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

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

1211 views

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

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

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

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

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

526 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

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

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 …

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

1445 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!

220 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"

343 views

I have a file location provided to me which I need to process the files found in the individual sub directories.

For eg: C:\Files\1\2\3\4

The sub directories limits to 4 and the file can reside …

756 views

Helo,

i am looking for a REGEX that can split a string like this
(CODE)


into
(CODE)

238 views

Hello,

i have this regular expression that i am trying to pull additional data for the lien subtotal in my string of text.

TEXT
(CODE)

REGEX

(CODE)

234 views

Need to capture url links from a string.

I am successfully able to filter out using this

"https://www.ANYURL.com/.*?(&)

I am looking to separate them but they are coming in separated by …

1148 views

Using VBscript & RegEx, how can I match lines starting with Oracle word in the below sample:

"OracleJobScheduler"                                check      12            TEST
"OracleMTSRecoveryService"                  check      87            Down
"Oracle…

1775 views
Free Tool: ZipGrep
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Hi, if I know most of a url but just need help telling it to get everything until it sees the extension, how can I do that?

For instance, I would want to retrieve any urls that start with …

235 views

I need a regular expression that will check the first 3 positions of a column for numeric values.  For example;

ALT1
-------
300BES          --> Want this one.
ABC                
1Bliss      …

134 views

Hi,

How can I use Tsql to split a string in to multiple rows.  The number of delimiters in each string  is not fixed,  so the result will also contains different number of rows.

for example,

7116 views

How do I remove everything except for the first set of numbers with Regex Pregmatch in PHP?  

2122-R|Replacement                            (Need result as 2122)                        
2039 CPC …

343 views

I had this question after viewing Following on from last question about extracting data values from a variable …

234 views

I had this question after viewing Extract a value from a variable using regular expression …

332 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
Top Experts In
Regular Expressions