Home > Community > Forums > Custom IC SKILL > rexmatch - retrieving values

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 rexmatch - retrieving values 

Last post Mon, Oct 12 2009 7:19 AM by skillUser. 4 replies.
Started by rajivsub 07 Oct 2009 10:33 AM. Topic has 4 replies and 1582 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Oct 7 2009 10:33 AM

    • rajivsub
    • Not Ranked
    • Joined on Tue, May 5 2009
    • Posts 7
    • Points 110
    rexmatch - retrieving values Reply

    I am using rexMatchp to get a value from a cell name.

    cell_name = "AN2X2"

    rexMatchp("^.*X\\([0-9]*\\)$" cell_name)     --> t

    How do I get the value stored in the register \( ...\)? Basically, I need to extract the 2 after AN2X in the cell name. In Perl this would be equivalent to the $1 variable, what is it in SKILL?

    Thanks

     

    • Post Points: 20
  • Wed, Oct 7 2009 10:53 AM

    Re: rexmatch - retrieving values Reply

    rexSubstitute("\\1") => "2"

    Regards,

    Andrew.

    • Post Points: 35
  • Wed, Oct 7 2009 11:17 AM

    • rajivsub
    • Not Ranked
    • Joined on Tue, May 5 2009
    • Posts 7
    • Points 110
    Re: rexmatch - retrieving values Reply

     Thanks for the quick response!

    • Post Points: 5
  • Thu, Oct 8 2009 10:32 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,571
    • Points 15,610
    Re: rexmatch - retrieving values Reply

    Excellent Andrew, thank you.

    From tomorrow SourceLink Solution 11556428 will be available which covers this with a couple of examples (I cannot post the link yet as the solution will not be published until tomorrow).

    Regards,

    Lawrence.

     

    • Post Points: 5
  • Mon, Oct 12 2009 7:19 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,571
    • Points 15,610
    Re: rexmatch - retrieving values Reply

     Here is the link: SourceLink Solution 11556428

    Cheers,

    Lawrence.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by rajivsub at 07 Oct 2009 10:33 AM. Topic has 4 replies.