944,121 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1472
  • C# RSS
Aug 15th, 2007
0

Regular Expressions

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CodeMonkey775 is offline Offline
10 posts
since Jul 2007
Aug 16th, 2007
0

Re: Regular Expressions

Can you describe your problem more clearly, with some more examples please.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: some doubts
Next Thread in C# Forum Timeline: Developers





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC