| Author |
rexml and regex
|
Chris Dancy
Ranch Hand
Joined: Feb 14, 2006
Posts: 136
|
|
I want to get the text of an attribute and perform a regex on it ... something like the following
And I want to use ruby's wonderful regex to remove the capitalized "AND" ... something like...
any ideas?
|
("Anger is not an emotion, its a symptom of fear.")
|
 |
Chris Dancy
Ranch Hand
Joined: Feb 14, 2006
Posts: 136
|
|
I actually solved this problem trying to debug it ... here is how you do it .
I assumed ".value" just returned the string but it in fact actually returns the pointer(for lack of a better term) to the string. It returns the node itself to work on. Sweet deal.
|
 |
 |
|
|
subject: rexml and regex
|
|
|