I tried to break the text into several small pieces to parse it using Javascript and RegEx. I illustrated my best shot here, for example:
https://regex101.com/r/jfzTlr/1
I have a set of rules to follow: I would like to get blocks. Each block starts with an asterisk (*) as the first character (if not indented, otherwise a tab), followed by 2-3 capital letters, a comma, (possible) space and code, which can be A, R, T, RS or RSS. Following this is an optional point. Then draw a line where the text appears. This text ends when the following stars appear, following the same pattern as above.
Can someone help me figure out how this can be shared? This is my model so far:
[^\t](.{2,3}),\s?.{1,3}\.?\n.*
Thank you so much!
source
share