pub fn create_persian_pattern<'a>(
    from: &'a str,
    to: &'a str
) -> Result<String, String>
Expand description

Creates a list/range of persian letters.

Unicode characters of Persian letters are not defined in the same order as their corresponding letters. This could result in confusion when creating customized persian word patterns. To solve that, a helper method is defined here.

Examples

use easy_regex::helpers::persian_pattern::create_persian_pattern;
 
let result = create_persian_pattern(("ا"), ("ر"));
assert_eq!("ابپتثجچحخدذر", result.unwrap());