python - I want collect all characters and events that end with a certain text? -
i want collect data before specified text or ends it, have tried following:
.{30}value_*|.{55}value2_*
but have specify how many characters want collect before specified ending text, want collect of them (note im dealing python/perl regexes here)
try like:
"(.+?)value_*|(.+?)value2_*"
without knowing data looks can't more specific. break down: .+
matches 1 or more characters, while ?
makes non-greedy, doesn't consume entire line @ once, , parentheses capture match (in python @ least).
Comments
Post a Comment