RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
@{2}((\S)+)@{2}
Description
This will match results in a template situation. For example: template reads Dear @@Name@@, .... would become Dear John, If you dont want to use the @@ change the @ to what ever characters you want.
Matches
@@test@@ | @@name@@ | @@2342@@
Non-Matches
@test@ | @@na me@@ | @@ name@@
Author Rating: Not yet rated. john hamman
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Bad matches like @@foo@@bar@@bletch@@
Name: Randal L. Schwartz
Date: 6/2/2005 2:24:09 PM
Comment:
You incorrectly match *all* of @@foo@@bar@@bletch@@ because you don't exclude "@" as one of your match chars. Bad. Voted 1.


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials