Regular Expressions

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 10
Reputation: CodeMonkey775 is an unknown quantity at this point 
Solved Threads: 0
CodeMonkey775 CodeMonkey775 is offline Offline
Newbie Poster

Regular Expressions

 
0
  #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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Regular Expressions

 
0
  #2
Aug 16th, 2007
Can you describe your problem more clearly, with some more examples please.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC