User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 391,560 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,742 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 704 | Replies: 1
Reply
Join Date: Jul 2007
Posts: 10
Reputation: CodeMonkey775 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
CodeMonkey775 CodeMonkey775 is offline Offline
Newbie Poster

Regular Expressions

  #1  
Aug 15th, 2007
I'm making an Excel type program where you reference to other cells using the R(r)C(c) syntax.
r = row number
c = column number.

Examples: R1C1 R40C18

I'm unfamiliar with regular expressions though and not sure how I could search through a string to find all of the references.

Example String: '= (9 * 9) + "Hello" + R2C15 + "Test" + R32C1'

How would I write a regular expression that would return all of the cell references in that string. Even better, I'd like to return a list of Point objects. Each Point object would represent a cell (row,column). But just getting the regular expression to work would be great.

Any help is appreciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,663
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 16
Solved Threads: 297
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Regular Expressions

  #2  
Aug 16th, 2007
Can you describe your problem more clearly, with some more examples please.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C# Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 10:00 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC