|
by: Ian Payne |
last post by:
Documentation says it does:
Quickwatch lists it (but <cannot view indexed property> as
expected)
So how come the compiler throws an error?
I can of course work round it (in C#) with myMatches,
but tend to use the Item property by default.
Ian
|
by: Juan |
last post by:
Hi, I´m using System.Text.RegularExpressions, I want to find any acurrence
of the char & or % or |
Ehat is the correct sintax for the Match method? This is what I´m usinf but
is not working:
Match myMatch = Regex.Match(myString,"^*$");
Thanks,
Juan.
|
by: Doug |
last post by:
I'm a little confused by this functionality. It doesn't seem to be
behaving like it should.
I am using the following regular expression to validate email
addresses:
"\w+(\w+)*@\w+(\w+)*\.({2,4})\040*". From what I can
determine it should validate the following rules:
1. BEFORE THE AMPERSAND
A. Must contain at least one alphanumeric character.
|
by: Richard Lionheart |
last post by:
Hi All,
I tried using RegEx, but the compiler barfed with "The type of namespace
'RegEx' could not be found.
Prior to this, I had the same problem with MatchCollection, but discovered
it's in the namespace "System.Text.RegularExpressions;" and that namespace
is, in turn, defined in the namespace "System", according to MSDN at
http://msdn2.microsoft.com/en-us/library/c75he57e(en-us,VS.80).aspx. So
adding "using...
|
by: chris fink |
last post by:
Using regular expression testers such as Expresso or Dan Appleman's tester,
I have a regular expression that tests fine and is returning matches.
However, when the same regex is run through code, the same code that is
returning the matches in the tester, no matches are found. The only
difference is that the in the tester, the source to run the regex against
are placed into a texbox (string array) and in the code the source is
generated...
|
|
by: Chris Anderson |
last post by:
Anyone know of a fix (ideally) or an easy workaround to the problem of escape characters not working in regex replacement text? They just come out as literal text
For example, you'd think that thi
Regex.Replace("<stuff>text</stuff>", "<stuff>", "<stuff>\n"
would give yo
<stuff
text</stuff
|
by: Cor |
last post by:
Hi Newsgroup,
I have given an answer in this newsgroup about a "Replace".
There came an answer on that I did not understand, so I have done some
tests.
I got the idea that someone said, that the split method and the
regex.replace method was better than the string.replace method and replace
function. I did not believe that.
|
by: Vikram |
last post by:
I am using regex class in codebehind to validate some control's text. But
for checking , postback is done.I want to avoid postback and check the same
exprseeion using regularexpressionvalidator. I have used same expression
strin in validator as it was in regexp class.but it is not working fine. do
it need to do some converiosn ?
|
by: cj |
last post by:
I just ran across this in the VB help. Sounds perfect. Only they don't
tell me what namespace must be imported to use regex. I guess that's
the problem cause I pasted this into a test program and it tell me Regex
is not declared.
Function CleanInput(ByVal strIn As String) As String
' Replace invalid characters with empty strings.
Return Regex.Replace(strIn, "", "")
End Function
|
by: Curious |
last post by:
I have another question about Regular Expression. If I use:
if (temp.Contains("Ending") == true)
{
temp =
System.Text.RegularExpressions.Regex.Replace(temp, "Ending",
"Beginning");
}
It seems that while "Ending" is replaced with "Beginning", it also
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|