public class RegexUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsFarsi(String text)
آیا عبارت مدنظر حاوی حروف و اعداد فارسی است؟
|
static boolean |
containsOnlyFarsiLetters(String text)
آیا عبارت مدنظر فقط حاوی حروف فارسی است؟
|
static boolean |
containsOnlyPersianNumbers(String text)
آیا عبارت مدنظر فقط حاوی اعداد فارسی است؟
|
static String |
stripHtmlTags(String text)
حذف تگهای یک عبارت
|
static String |
wrapInDirectionalDiv(String body)
اگر متن شما حاوی یک عبارت فارسی باشد آنرا داخل یک بلاک اچ تی ام ال راست به چپ محصور میکند
در غیراینصورت در
|
static String |
wrapInDirectionalDiv(String body,
String fontFamily,
String fontSize)
اگر متن شما حاوی یک عبارت فارسی باشد آنرا داخل یک بلاک اچ تی ام ال راست به چپ محصور میکند
در غیراینصورت در
|
public static boolean containsFarsi(String text)
text - the textpublic static boolean containsOnlyFarsiLetters(String text)
text - the textpublic static String stripHtmlTags(String text)
text - the textpublic static String wrapInDirectionalDiv(String body)
body - the bodypublic static String wrapInDirectionalDiv(String body, String fontFamily, String fontSize)
body - the bodyfontFamily - the font familyfontSize - the font sizepublic static boolean containsOnlyPersianNumbers(String text)
text - the textCopyright © 2019. All rights reserved.