This Regex can find all kind of Iranian Banks' card number into a text such as these models:
Extract Iranian Bank's numbers into a string
ExtractCardNumber[]
Find Bank's name by card number
Card number
string | null | undefined
card number
digitsArToEn
digitsArToFa
digitsEnToAr
digitsEnToFa
digitsFaToAr
digitsFaToEn
Check Legal-id validation
[valid or no]
Get Province and City name by Iranian National-Id
string of national id - like this: 1111111111
If nationalId is valid, function returns an object of details, but if nationalId is invalid, return an error message
Check National-id validation
[valid or no]
Convert to numbers
Converted words to number. e.g: 350000
Get plate info and validation
An object containing the number and char value or a string.
An object containing plate and validation info.
SortText
a String or a list of strings
optional argument to replace character with space in URLs. by default return URL with space
a string of fixed URL
Add Commas to numbers
string of separated numbers by commas, eg: 30,000
Add Ordinal suffix to numbers
Number, eg: "300000"
A string of ordinated number
Returns the capital name of province you enter
capital name
Replace halfSpace in string(Zero-width non-joiner)
clean entered persian string
Check if string includes Arabic alphabet.
Return true if the entered string includes persian characters
Check if string includes persian alphabet.
in complex mode, we accept some specific characters which are common in Farsi text.
Return true if the entered string includes persian characters
Check if string is Arabic
Pattern of characters which you want to trim from the string e.g. "-+. ()"
Return true if the entered string does not include other-language characters.
Check if string is in persian.
in complex mode, we accept some specific characters which are common in Farsi text.
Pattern of characters which you want to trim from the string e.g. "-+. ()"
Return true if the entered string does not include other-language characters.
Remove all commas in string
A number which includes any commas
String that includes ordinal suffix
A string of words that not includes Ordinal strings
toPersianChars
Description: Replace all instances of ي and ك with ی and ک, respectively. It should not make any changes to an Arabic text surrounded by appropriate templates.
cleaned characters of arabic characters
Find information such as Province, type and model of mobile number. This function is related to the phoneNumberValidator function to detect that the mobile number is valid or not If the Mobile number was valid, then the OperatorModel will be resolved if it was existed. To get more information about phone numbers operators' details, referer to Wikipedia
OperatorModel | null
Normalize a phone number to a standard format based on the provided token. This function is related to the phoneNumberValidator function to detect that the mobile number is valid or not
can be either +98
or 0
String | never
Converting Jalali date-time into a time ago.
Format must be yyyy/mm/dd hh:mm:ss. If no value is entered for input, the current time is considered.
Return time ago value. Eg: حدود 1 سال قبل
Generated using TypeDoc
Acceptable keywords between numbers are:
5022*2910_7087-3466