Regular Expressions 101

Community Patterns

Lakar Detector from Astadhyayi source text

1

Regular Expression
ECMAScript (JavaScript)

/
\s+([\u0900-\u097F]*)\s+([-]{2}).([-]{4})\s+\(कौमुदीधातुः-\s([-]{4})\)[\s\S]*(परस्मैपदी|आत्मनेपदी)\s+(अकर्मकः|सकर्मकः)
/
gu

Description

// 1st: aashirling or vidhiling matches. empty string otherwise. // 2nd: i or e or o or r of lakar name l_ट or l_ङ. "" when अ. // 3rd: ट or ङ. // 4 through 13 are 9 dhatu forms [Purusha(/)][Vachana(%)].

Submitted by anonymous - 7 months ago (Last modified 7 months ago)