Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(sub-item: (?P<subitem>.+?): )(?P<subitemrest>.+)|((?P<transcr>.+?)(?P<homonymno>¹|²|³)? )?(\((?P<impvowel>.)\) )?(\/(?P<pos0>.+?)( pl (?P<pl>.+))?\/)\s(?P<rest>.+?)( - (?P<vforms>.+?))?$
"
gm
Input 1
1
New
2ism¹ /n/ 1 /pl 2asma, 2asaami, 2asmaa2/ name. 2 /pl 2asmaa2 only/ [gram] noun. ¶ ismⁱ 2inn /conj/ in view of the fact that taani /adj */ 1 second. 2 other, another. 3 next, following. - /adv/4 again, more. sha2n /n pl shu2uun/ affair, matter. sub-item: form: di 2ana /pers pron/ I. ¶ ya-ana (or y-aani) dear me! oh my! (used by one who is ill, tired or exasperated) /often shortened before def. art. to mi-; w pron. suff .../ preposition indicating 1a point of origin or departure, tangible or intangible. 1b passage through. 2a relation between past and present time. 2b duration from a point in past time up to the present. 2c incipience. 3 cause or reason. 4 comparative relationship. 5 partitive relationship. 6 derivational relationship. 7 reference, regard or consideration. 8 lack of control over a circumstance kaan (u) /vi; the following variants frequently occur: 1st sing kutt, 2nd sing masc kutt, 2nd sing fem kutti, 2nd pl kuttu, 3rd sing fem kaat/ 1 to be, exist. 2a /with copulative function/ to be. 2b to be situated (in place or time). 3 auxiliary verb in perfect tense to form 3a pluperfect. 3b continuous or habitual past. 3c inchoative future. 3d a hypothetical past conditional. 4 auxiliary verb in the imperfect tense to form 4a future perfect. 4b habitual future perfect. 4c continuous or habitual future. 4d hypothetical future conditional. -vn koon; ava kaayin. 2illi /rel pron/ 1 who, which, that. 2 whoever, whichever, whatever. 3 /w conj function/ seeing that, since. /conj/ as if, as though /vt/ to conceal, hide. - vn taxbiyya; ava/pva mixabbi Galab (i) /vt/ 1a to invert, turn over. 1b to knock over. 2 to convert into, turn into. -- /vi/ 3 to become inverted, turn over. 4 to undergo a change, become converted. - vn Galb, Galabaan; ava Gaalib; pva maGluub
Substitution
SUBITEM: \g<subitem>\nSI-REST: \g<subitemrest>\nT: \g<transcr>\nH-NO: \g<homonymno>\nPOS: \g<pos0>\nPLURAL: \g<pl>\nVF: \g<vforms>\nIMPVOWEL: \g<impvowel>\nREST: \g<rest>\n---
2ism¹ /n/ 1 /pl 2asma, 2asaami, 2asmaa2/ name. 2 /pl 2asmaa2 only/ [gram] noun. ¶ ismⁱ 2inn /conj/ in view of the fact that taani /adj */ 1 second. 2 other, another. 3 next, following. - /adv/4 again, more. sha2n /n pl shu2uun/ affair, matter. sub-item: form: di 2ana /pers pron/ I. ¶ ya-ana (or y-aani) dear me! oh my! (used by one who is ill, tired or exasperated) /often shortened before def. art. to mi-; w pron. suff .../ preposition indicating 1a point of origin or departure, tangible or intangible. 1b passage through. 2a relation between past and present time. 2b duration from a point in past time up to the present. 2c incipience. 3 cause or reason. 4 comparative relationship. 5 partitive relationship. 6 derivational relationship. 7 reference, regard or consideration. 8 lack of control over a circumstance kaan (u) /vi; the following variants frequently occur: 1st sing kutt, 2nd sing masc kutt, 2nd sing fem kutti, 2nd pl kuttu, 3rd sing fem kaat/ 1 to be, exist. 2a /with copulative function/ to be. 2b to be situated (in place or time). 3 auxiliary verb in perfect tense to form 3a pluperfect. 3b continuous or habitual past. 3c inchoative future. 3d a hypothetical past conditional. 4 auxiliary verb in the imperfect tense to form 4a future perfect. 4b habitual future perfect. 4c continuous or habitual future. 4d hypothetical future conditional. -vn koon; ava kaayin. 2illi /rel pron/ 1 who, which, that. 2 whoever, whichever, whatever. 3 /w conj function/ seeing that, since. /conj/ as if, as though /vt/ to conceal, hide. - vn taxbiyya; ava/pva mixabbi Galab (i) /vt/ 1a to invert, turn over. 1b to knock over. 2 to convert into, turn into. -- /vi/ 3 to become inverted, turn over. 4 to undergo a change, become converted. - vn Galb, Galabaan; ava Gaalib; pva maGluub