RegexReplace.Options
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שיטות בירושה
מכיתה java.lang.Object בוליאני | שווה (Object arg0) |
שיעור אחרון<?> | getClass () |
int | hashcode () |
ריק סופי | להודיע () |
ריק סופי | הודע הכל () |
חוּט | toString () |
ריק סופי | המתן (ארג0 ארוך, int arg1) |
ריק סופי | המתן (ארג0 ארוך) |
ריק סופי | חכה () |
שיטות ציבוריות
public RegexReplace.Options replaceGlobal (Boolian replaceGlobal)
פרמטרים
להחליף גלובלי | אם True, ההחלפה היא גלובלית (כלומר, כל ההתאמות של הביטוי הרגולרי `pattern` בכל מחרוזת קלט נכתבות מחדש), אחרת החלפת `rewrite` מתבצעת רק עבור התאמת `pattern` הראשונה. |
---|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# RegexReplace.Options\n\npublic static class **RegexReplace.Options** \nOptional attributes for [RegexReplace](/jvm/api_docs/java/org/tensorflow/op/strings/RegexReplace) \n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [RegexReplace.Options](/jvm/api_docs/java/org/tensorflow/op/strings/RegexReplace.Options) | [replaceGlobal](/jvm/api_docs/java/org/tensorflow/op/strings/RegexReplace.Options#replaceGlobal(java.lang.Boolean))(Boolean replaceGlobal) |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [RegexReplace.Options](/jvm/api_docs/java/org/tensorflow/op/strings/RegexReplace.Options)\n**replaceGlobal**\n(Boolean replaceGlobal)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| replaceGlobal | If True, the replacement is global (that is, all matches of the \\`pattern\\` regular expression in each input string are rewritten), otherwise the \\`rewrite\\` substitution is only made for the first \\`pattern\\` match. |\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]