Group Abstract Group Abstract

Message Boards Message Boards

0
|
7K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Help with PatternSequence

Posted 10 years ago
POSTED BY: Miguel Olivo-V
2 Replies

Try

list //. {bef,PatternSequence[x, m] /;StringQ[m] && StringFreeQ[m, DigitCharacter], aft} :> {bef, LIST[x, m], aft} /. LIST -> List

How about this:

lines //. {bef___, x_String, m_String /; StringFreeQ[m, DigitCharacter], 
    aft___} :> {bef, temp[x, m], aft} /. temp -> List
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard