The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: A simple regexp question
Replies: 2   Last Post: Jan 29, 2013 6:18 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
matt dash

Posts: 641
Registered: 4/18/08
A simple regexp question
Posted: Jan 29, 2013 5:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello all,

I have a conceptually simple problem... I have a text file that i've read in as one long string. At various places in this string is the pattern cx="<a number>". The numbers are integers but may contain any number of digits. I'm trying to extract all such numbers from the string. Can this be done easily with regexp? I suspect it has a very simple solution, but i can never quite figure out regexp.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.