-5

I want extract strings from this text with regex:

¬~ZCC÷0¬ZAF÷~World¬~AA÷Eef~RZgth¬AD¬~AA÷jaKNedK8¬AD÷1502690‌​400¬ADE÷~1502690400

expected output:

['ZCC÷0¬ZAF÷~World','AA÷Eef~RZgth¬AD','AA÷j‌​aKNedK8¬AD÷150269040‌​0¬ADE÷~1502690400']

the delimiter is

¬~

Thankyou

2
  • 4
    The question is off-topic due to lack of supporting efforts. Please see How to Ask or take a tour. Commented Aug 14, 2017 at 11:59
  • See ideone.com/JuXfV4 Commented Aug 14, 2017 at 12:06

1 Answer 1

1

For this task using a regex is a bit overkill. Just use the split() method

string = "¬~ZCC÷0¬ZAF÷~World¬~AA÷Eef~RZgth¬AD¬~AA÷jaKNedK8¬AD÷1502690‌​400¬ADE÷~1502690400"
x = string.split("¬~")
print(x)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.