+ Reply to Thread
Results 1 to 2 of 2

Thread: Extract the table id

  1. #1

    Extract the table id

    I have table like that :
    Code:
    <table id='tbl_15_ddx'><tr><td></td></tr></table>
    and i`d like to extract the table ID which ends with _ddx using REGEX , so how can i do that ?

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    41
    When you use a new Regexp you have to escape your backslashes like so:
    Code:
    var rexexp = new RegExp("\\b\\w*_ddx\\b");
    Or you can use a regex literal:
    Code:
    var rexexp = /\b\w*_ddx\b/;

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts