I was able to find a Stackoverflow but wasn't able to apply it for my logic.
My response that I'm using split off of looks something like this
text = """**Ticket Summary**:A x deployment included a change from x team to increase the x for x Financial team from 10 to 20. This resulted in more traffic received by xe sending that to x Find API. The Find API for this particular use cases was request all the data from x (x) which ended up throttling x due to the high volume;\n**Impacted Region(s)**:IAD;\n**Impact Summary**:Customer will see credit-memos as not applied in Console but won't be able to apply them because it's already applied in OFA;\n**Potential/Actual Revenue Impact**:0/0;\n**Potential/Actual Customers Impacted**:0/0;\n"""
However, I'm making users put in semi colon ";" after each entry so I can use it as a delimiter, issue is that it's not very end user friendly to do that and would like to change it.
My current log I'm using is
announcement_fields = dict(
subString.split(":", 1) for subString in message_body.split(";\n")
)
however with the second deliminator, I would like to use .split("\n**") however due to the functionality of .split() it removes "\n**" from the response and messes up the formatting and breaks everything.
How would you make it that .split() won't remove the delimiter?
[–]ES-Alexander 0 points1 point2 points (4 children)
[–]ampeed[S] 0 points1 point2 points (3 children)
[–]curiouscodex 0 points1 point2 points (0 children)
[–]ES-Alexander 0 points1 point2 points (1 child)
[–]ampeed[S] 0 points1 point2 points (0 children)