|
-
Oct 9th, 2008, 09:02 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Regular expression to find Tokens in HTML page
Hey there,
im trying to create a regular expression to replace Tokens on an HTML page.
each token will begin with |~ and end with ~|
eg1: |~TOKEN1~|
eg2: |~MY TOKEN~|
eg2: |~Another_Token~|
these can lie anywhere in HTML page, so all i care about is whats between the start and end delimiters
im struggling with creating a pattern.
what i have tried is "|~[A-Za-z0-9_]~| but it doesnt work for me..
any help is appreciated
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|