Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.7K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Cases[] with Pattern in Pattern

Posted 11 years ago

I often encounter this obstacle.

When I extract data from an URL, and I wish, for instance, to do it like this:

Cases[url, {XMLElement[
    "th", {___}, {_, XMLElement["span", {___}, {mo_}], _}], __, 
   XMLElement["td", {___, "id" -> XXX}, {E_}], ___} :> {mo, 
   E}, \[Infinity]]

but, instead of "XXX" I would like to say any string which ends with "priorSettle".

Is it possible? or "XXX" can only be the exact string?

POSTED BY: Sandu Ursu
2 Replies
Posted 11 years ago
POSTED BY: Sandu Ursu
POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard