CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 12/4/2003 2:34:18 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 19 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
20 Items, 1 Pages 1 |< << Go >> >|
moffatdm
Asp.Net User
Suggestion: Regular Expression Editor12/4/2003 2:34:18 PM

0/0

Within VS Whidbey it would be very helpful if within the Regular Expression Editor, you had the ability to test the Regular Expression by entering some test input.

The steps would be

1. You would enter your Regular Expression as normal.

2. below this a text box would be added where you could enter test data

3. Press some sort of "Validate" button and get results

This would really help speed up testing of Regular Expressions.

Anyone else think this would be beneficial?

Regards

David

Scott Louvau
Asp.Net User
Re: Suggestion: Regular Expression Editor12/4/2003 8:09:14 PM

0/0

I've filed a suggestion for this. Good idea, I write Regular Expressions and spend quite a bit of time debugging them myself!

-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
Morritt
Asp.Net User
Re: Suggestion: Regular Expression Editor12/8/2003 11:05:23 AM

0/0

is a very good idea, i hate [and suck at] regular expressions :-(
sreedhark
Asp.Net User
Re: Suggestion: Regular Expression Editor12/8/2003 11:24:56 AM

0/0

Count me on this! This is a very good idea!
Sreedhar
Microsoft MVP (ASP.NET)
http://www.w3coder.com
weblog http://weblogs.asp.net/skoganti
SeanLA-MS
Asp.Net User
Re: Suggestion: Regular Expression Editor12/17/2003 5:53:16 PM

0/0

Thanks for the suggestion! Unfortunately, we don't have time to add the feature to the Whidbey release of Visual Studio. I've added the suggestion and your comments to my ever growing list of feature suggestions for future versions.

Have you had a chance to play around with Addins? If you're interested in writing a Reg Ex Editor that plugs into Visual studio then an Addin would be the quickest way to do it.

Thanks,
Sean Laberee
angiras
Asp.Net User
Re: Suggestion: Regular Expression Editor12/18/2003 7:57:16 PM

0/0

me too !
regular expression = coding horror

I never seen any editor ... do you know one ?
angiras
scoob
Asp.Net User
Re: Suggestion: Regular Expression Editor1/22/2004 10:19:56 PM

0/0

Also a bunch of most common premade regexes (i.e. for control validation) such as zip code, email, dns, ipv4/ipv6, etc..
Scott Louvau
Asp.Net User
Re: Suggestion: Regular Expression Editor1/23/2004 5:26:35 PM

0/0

I am working on a Regular Expression Builder which could become an Add-In for Visual Studio .NET 2002/3 and possibly a part of the following version. I'm not sure if and how I might be able to release it, but I'll make something available up here. Any feature requests?

So far, I allow you to provide Source Text and the expression, and I tell you how many matches you have and give you a TreeView listing each match and the Groups and Captures within them. I've also got the same pop-up menu that the Find dialog has, showing the various Regular Expression constructs and allowing them to be added.

I'll think about some common pre-built expressions to add and will work on adding a history DropDown for the expression itself.

Thanks,
-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
angiras
Asp.Net User
Re: Suggestion: Regular Expression Editor1/23/2004 6:13:04 PM

0/0

wonderfull idea !
angiras
davidvl2
Asp.Net User
Re: Suggestion: Regular Expression Editor1/28/2004 10:25:06 PM

0/0

Sounds great. Do you know where and when you will release it?

Regards,

David van Leerdam
Scott Louvau
Asp.Net User
Re: Suggestion: Regular Expression Editor1/30/2004 8:55:02 PM

0/0

So far I have no idea. I'd like to share what I have sometime relatively soon, but I'm guessing there are legal and other issues I'll have to learn about before I can do that. I'll post when I know more.

In the meantime, are there other requests, or other pre-built expressions people would recommend I add?

One great request I've gotten internally is that I allow executing the selection in addition to the whole expression (like the Query Analyzer does) so that people can break down the expression and see what is working and what isn't without the clipboard or other editing.

-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
davidvl2
Asp.Net User
Re: Suggestion: Regular Expression Editor2/4/2004 4:58:38 PM

0/0

Sounds nice. I have no further suggestions at the moment.

Regards,

David van Leerdam
Swinka
Asp.Net User
Re: Suggestion: Regular Expression Editor2/5/2004 11:38:58 AM

0/0

I've made right now a small aspx page that validates your regular expressions against the test data.
Also it shows all the groups, captures and matches.
Also there is a drop-down list width pre-defined regular expressiones (you can add more if you need).

I'm not very good with regular expressions, so I'm not sure that groups&captures work the way they have too. So, if u have some time - try testing my code.

Id you want I can migrate this code from web forms to windows forms or even make an Add In for VS.

P.S. If there are no groups to show - only the matched strings are shown.

To see the groups, try this:
RE - (\w+)\s+(car)
Test Data - One car red car blue car


Here is the code:

[code]
<%@ Page Language="VB" %>
<script runat="server">

Sub Button1_Click(sender As Object, e As EventArgs)
dim strRExp
dim strIn

strRExp = rExp.text
strIn = toCheck.text

Dim r As Regex = new Regex(strRExp, RegexOptions.IgnoreCase)
Dim m As Match = r.Match(strIn)
Dim matchcount as Integer = 0

Dim i As Integer
Dim j As Integer
Dim g as Group
Dim cc As CaptureCollection
Dim gc As GroupCollection
Dim c As Capture

If m.Success then
mCount.Visible = true
matchCountLabel.Visible = true
vR.text = ""
While (m.Success)
matchCount += 1
vR.text += m.value & "<BR>"
gc = m.Groups
If gc.Count - 1 > 0 then
For i = 1 to gc.Count-1
g = m.Groups(i)
If not g.ToString() = "" then
vR.text += "&nbsp;&nbsp;&nbsp;Group " & i & " = '" & g.ToString() & "'<BR>"
cc = g.Captures

For j = 0 to cc.Count - 1
c = cc(j)
vR.text += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capture " & j & " = '" & c.ToString() _
& "', Position=" & c.Index & "<BR>"
Next j
End If
Next i
End If
m = m.NextMatch()
End While
mCount.text = matchCount
Else
vR.text = "No Match"
mCount.Visible = false
matchCountLabel.Visible = false
End If

End Sub

Sub REtemplate_SelectedIndexChanged(sender As Object, e As EventArgs)
dim myValue
myValue = REtemplate.SelectedIndex
if myValue <> 0 then
rExp.text = REtemplate.Items(myValue).value
Else
rExp.text = ""
End If
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<table cellspacing="0" cellpadding="3" width="100%">
<tbody>
<tr>
<td>
<p>
<asp:DropDownList id="REtemplate" runat="server" OnSelectedIndexChanged="REtemplate_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem Value="0" Selected="True">Choose regular expression</asp:ListItem>
<asp:ListItem Value="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Email Address</asp:ListItem>
<asp:ListItem Value="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?">URL Address</asp:ListItem>
</asp:DropDownList>
</p>
<p>
<asp:Label id="Label1" runat="server">Regular Expression</asp:Label>
</p>
<p>
<asp:TextBox id="rExp" runat="server" Height="83px" Width="482px" TextMode="MultiLine"></asp:TextBox>
</p>
<p>
<asp:Label id="Label2" runat="server">Text to check</asp:Label>
</p>
<p>
<asp:TextBox id="toCheck" runat="server" Height="93px" Width="484px" TextMode="MultiLine"></asp:TextBox>
</p>
<p>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Validate"></asp:Button>
</p>
</td>
<td>
<p>
<asp:Panel id="Panel1" runat="server" Height="205px" Width="522px" BackColor="White">
<p>
<asp:Label id="matchCountLabel" runat="server" visible="False">Number of matches: </asp:Label><asp:Label id="mCount" runat="server" visible="False"></asp:Label>
</p>
<p>
<asp:Label id="vR" runat="server" width="343px">Press the Validate Button</asp:Label>
</p>
</asp:Panel>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>

[/code]
adutton
Asp.Net User
Re: Suggestion: Regular Expression Editor2/25/2004 7:09:01 PM

0/0

Maybe you folks have already found this, but there are a number of stand alone Regular Expression tools out there. "The Regulator" is a free one that is pretty powerful. I just added it as an External Tool in VS and then it's quick to get to.
appana
Asp.Net User
Re: Suggestion: Regular Expression Editor3/4/2004 6:27:45 AM

0/0

There are quite a few useful regular expression builders available today. I heard Regular Expression Builder is a very good C# based tool. You might want to give it a try.

Hope this helps,
Appan

ASP.NET Team



This posting is provided "AS IS" with no warranties, and confers no rights.
Scott Louvau
Asp.Net User
Re: Suggestion: Regular Expression Editor5/12/2004 12:54:58 AM

0/0

I've built this thing and been using it for a while, so I think it's time to post it. You can find the tool at http://workspaces.gotdotnet.com/RegexBuilder. It's helped me figure out what was going on when I had an expression which wasn't matching, and hopefully it can help other folks, too.

-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
vialetti
Asp.Net User
Re: Suggestion: Regular Expression Editor5/12/2004 9:12:38 PM

0/0

Hello, one of my sugested predefined regexs would be a list of comma separated e-mails. I need this for an e-card sending portal. The user can send a card to 1 to n people, like this:
[email protected], [email protected], [email protected]

If in the meantime somebody can help me, I would apreciatte it a lot. I have found some regular expressions for single emails, but I don't know how to accept 1 to n
Scott Louvau
Asp.Net User
Re: Suggestion: Regular Expression Editor5/14/2004 1:52:13 AM

0/0

With the Regex class you can see one Match, or you can enumerate through all of them. Make an expression which will match one address and then use Regex.Matches to get them all and iterate through the collection which is returned.

-Scott
This posting is provided "AS IS" with no warranties, and confers no rights.
Vintious
Asp.Net User
Re: Suggestion: Regular Expression Editor5/19/2004 4:09:21 AM

0/0

www.regexlib.com

User submitted regular expressions, a tester, and all that :D
digory
Asp.Net User
Re: Suggestion: Regular Expression Editor6/29/2004 11:24:01 PM

0/0

RegexLib.com also exposes certain webservices which allow you to:

- Search for patterns
- Submit patterns
- Create a new user account

I'd certainly look at extending this feature-set based on recommendations and, of course, I'd love to look at VS integration :-)
Darren Neimke - ASP.NET MVP, MCAD
MarkItUp.com

ASP.NET 2.0 Web Parts book:
http://www.amazon.com/exec/obidos/ASIN/193239477X/forestlakewebser
20 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Practical Programming in Tcl/Tk Authors: Brent B. Welch, Safari Tech Books Online, Jeffrey Hobbs, Pages: 882, Published: 2003
SAS 9.1 Companion for Windows Authors: SAS Institute SAS Publishing Staff, SAS Institute, Pages: 575, Published: 2004

Web:
Suggestion: Regular Expression Editor - ASP.NET Forums Re: Suggestion: Regular Expression Editor. 12-04-2003, 3:09 PM. Contact ... Re: Suggestion: Regular Expression Editor. 12-08-2003, 6:05 AM ...
Suggestion: Regular Expression Editor - ASP.NET Forums Suggestion: Regular Expression Editor. Last post 06-29-2004 7:24 PM by digory. 19 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
cb2Bib: The Regular Expression Editor The Regular Expression Editor provides the basic skeleton and a set of predefined suggestions. The regular expressions follow a Perl-like sintax. ...
XNA Game Studio 3D model editor suggestions - Stack Overflow XNA Game Studio 3D model editor suggestions ... PHP, Python, JavaScript, etc. Bundled library of regular expressions for future use. Detailed tutorial. ...
EmEditor text editor - Forums EmEditor text editor Forum Index ยท EmEditor Core Enhancement Suggestions ... If you use the same option (Regular expression) always, ...
WarkenSoft Productions | Homepage If you have suggestions for other ones, feel free to let us know. ... Did you find this regular expression editor to be useful? ...
Table of Contents All TAB-completion suggestions as well as the corresponding help-text popups ... The Regular Expression Library comes with an editor where you can enter the ...
MSDN Regular Expressions .NET flavor RegEx utility NET flavor regular expression editor (if anyone is interested). ... Is there a . NET flavor regEx engine editor/tester out there? Thanks for any suggestions ...
Seeking a great Linux text editor. Suggestions? | Computerworld Blogs Seeking a great Linux text editor. Suggestions? .... Vim has built in ability to perform regular expressions on text, which is something NoteTab 5.x is ...
regex and editor - Ubuntu Forums regex and editor Absolute Beginner Talk. ... In any case any other suggestion is welcome. Thanks. helphope is offline ...

Videos:
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
www.moldytoaster.com polled three days and got--one vote, declared County Member elect. Sibthorp shall be a man of weight and influence, "giving to (h)airy nothing a loca...




Search This Site:










case of the missing "generate local resource" item

validation (xhtml 1.1) : attribute 'align' is not a valid attribute of element 'p'

detecting sd memory card insertion into card reader without autoplay on.

list of used server ids

visual studion 2005 split view

strange visual studio problem

converting htm files to aspx files in visual studio 2005

nasty error message when online - not on pc

dropdownlist and intellisence

upgrade to visual studio 2005 iis login problem.

intellisense suddenly stopped working

asp 2.0's built-in web server

send email using dhtml editing control ie5

error: <visual studio path> is not a valid path

local dev webserver --- dont want virtual directory

looking for sql formatter plug in

how to rename solution/project in vs 2005

how to create a popup window having close button on right upper corner in asp.net

what does "property access must assign to the property or use its value" means?

vs shortcut: collapse all?

toolbox unable to be reset, even with "reset all settings"

what is the best place to place the connection string?

need urgent advise

vsto excel project from windows application

can't debug my program

problem installing vs sp1

design mode scrollbar is missing

how work onclick and alerts.

vs2005 pro installation: insert enu disk 1????

using webparts in vs 2005 web application projects disables code behind updating

  Privacy | Contact Us
All Times Are GMT