Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
if column header contain regexp, delete column
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="James Gray, post: 4642346"] It's FasterCSV kind of cheating you a little bit here. The table() method uses some options to make it as easy as possible to programmatically work with the resulting data structure. One of those options turns the headers into Symbols, so your header really ends up looking like: :s31_which_best_describes_how_you_answered_the_online_reading_comprehension_quiz Thus the Regexp needs to be adapted accordingly. Here's one you might try: /\AS\d+/i Hope that helps. James Edward Gray II [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
if column header contain regexp, delete column
Top