Hi
I am new to using regular expressions in VB.NET, and need a bit of help.
I am trying to parse a string that looks like this:
~datastart some variable numbers, characters and spaces of unknown length~
to get this
~datastart~
I tried this:
strWorkingData = Regex.Replace(strWorkingData, "~datastart*~",
"~datastart~")
but it returned the starting value
Any help would be appreciated (including any good resources on how to use
regular expressions)
Thanks for the help
Derrick 4 1257
try ~(datastart[^~]*)~
that might work.
test string "fjsgf~datastart453~~~~3232~datastart.--$#2~#@@~datastart @//+_)(*&^@ 4 ~fdas#@$#@fdsfd" should return 3 matches.
----- Derrick wrote: -----
Hi
I am new to using regular expressions in VB.NET, and need a bit of help.
I am trying to parse a string that looks like this:
~datastart some variable numbers, characters and spaces of unknown length~
to get this
~datastart~
I tried this:
strWorkingData = Regex.Replace(strWorkingData, "~datastart*~",
"~datastart~")
but it returned the starting value
Any help would be appreciated (including any good resources on how to use
regular expressions)
Thanks for the help
Derrick
Thank you - That worked perfectly.
Derrick
"tMan" <an*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com... try ~(datastart[^~]*)~
that might work.
test string "fjsgf~datastart453~~~~3232~datastart.--$#2~#@@~datastart
@//+_)(*&^@ 4 ~fdas#@$#@fdsfd" should return 3 matches.
----- Derrick wrote: -----
Hi
I am new to using regular expressions in VB.NET, and need a bit of
help. I am trying to parse a string that looks like this: ~datastart some variable numbers, characters and spaces of unknown
length~ to get this ~datastart~
I tried this: strWorkingData = Regex.Replace(strWorkingData, "~datastart*~", "~datastart~") but it returned the starting value
Any help would be appreciated (including any good resources on how to
use regular expressions)
Thanks for the help
Derrick
try ~(datastart[^~]*)~
that might work.
test string "fjsgf~datastart453~~~~3232~datastart.--$#2~#@@~datastart @//+_)(*&^@ 4 ~fdas#@$#@fdsfd" should return 3 matches.
----- Derrick wrote: -----
Hi
I am new to using regular expressions in VB.NET, and need a bit of help.
I am trying to parse a string that looks like this:
~datastart some variable numbers, characters and spaces of unknown length~
to get this
~datastart~
I tried this:
strWorkingData = Regex.Replace(strWorkingData, "~datastart*~",
"~datastart~")
but it returned the starting value
Any help would be appreciated (including any good resources on how to use
regular expressions)
Thanks for the help
Derrick
Thank you - That worked perfectly.
Derrick
"tMan" <an*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com... try ~(datastart[^~]*)~
that might work.
test string "fjsgf~datastart453~~~~3232~datastart.--$#2~#@@~datastart
@//+_)(*&^@ 4 ~fdas#@$#@fdsfd" should return 3 matches.
----- Derrick wrote: -----
Hi
I am new to using regular expressions in VB.NET, and need a bit of
help. I am trying to parse a string that looks like this: ~datastart some variable numbers, characters and spaces of unknown
length~ to get this ~datastart~
I tried this: strWorkingData = Regex.Replace(strWorkingData, "~datastart*~", "~datastart~") but it returned the starting value
Any help would be appreciated (including any good resources on how to
use regular expressions)
Thanks for the help
Derrick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Patient Guy |
last post by:
Coding patterns for regular expressions is completely unintuitive, as far
as I can see. I have been trying to write script that produces an array
of attribute components within an HTML element.
...
|
by: Joe |
last post by:
Hi,
I have been using a regular expression that I don’t uite understand to
filter the valid email address. My regular expression is as follows:
<asp:RegularExpressionValidator...
|
by: Q. John Chen |
last post by:
I have Vidation Controls
First One: Simple exluce certain special characters:
say no a or b or c in the string:
*
Second One:
I required date be entered in "MM/DD/YYYY" format:
//+4 How...
|
by: Billa |
last post by:
Hi,
I am replaceing a big string using different regular expressions (see
some example at the end of the message). The problem is whenever I
apply a "replace" it makes a new copy of string and I...
|
by: Michael Primeaux |
last post by:
I'm somewhat new to regular expressions and am in need of assistance. I'd
like to match on any OBJECT, EMBED, or APPLET element nested inside an
<HTML> element. Would someone point me in the right...
|
by: Mark Rae |
last post by:
Hi,
I'm trying to construct a RegEx pattern which will validate a string so that
it can contain:
only the numerical characters from 0 to 9 i.e. no decimal points, negative
signs, exponentials...
|
by: Mike |
last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in
matches. I would like to get what the actual regular expression is.
In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART...
|
by: Zeba |
last post by:
Hi guys,
I need some help regarding regular expressions. Consider the following
statement :
System.Text.RegularExpressions.Match match =...
|
by: laredotornado |
last post by:
Hi,
I have a span that contains text of the form
var spanHtml = "My Tab Content (7)";
The content is guaranteed to end with a string of the form "(#)" where
"#" is a whole number. My...
|
by: joey.powell |
last post by:
Hello guys, I am primarily an asp.net programmer, but lately I've been
doing some work with Apache, MySQL and PHP.
Anyways, I have a question that I posted in the microsoft asp.net
newsgroup....
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |