RegexReplace.Options
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วิธีการสืบทอด
จากคลาส java.lang.Object บูลีน | เท่ากับ (วัตถุ arg0) |
คลาสสุดท้าย<?> | รับคลาส () |
ภายใน | แฮชโค้ด () |
โมฆะสุดท้าย | แจ้ง () |
โมฆะสุดท้าย | แจ้งทั้งหมด () |
สตริง | toString () |
โมฆะสุดท้าย | รอสักครู่ (ยาว arg0, int arg1) |
โมฆะสุดท้าย | รอ (ยาว arg0) |
โมฆะสุดท้าย | รอ () |
วิธีการสาธารณะ
RegexReplace.Options สาธารณะ แทนที่Global (บูลีนแทนที่Global)
พารามิเตอร์
แทนที่โกลบอล | หากเป็นจริง การแทนที่จะเป็นแบบโกลบอล (นั่นคือ การจับคู่ทั้งหมดของนิพจน์ทั่วไป `รูปแบบ` ในแต่ละสตริงอินพุตจะถูกเขียนใหม่) มิฉะนั้น การแทนที่ 'การเขียนใหม่' จะถูกสร้างขึ้นสำหรับการจับคู่ 'รูปแบบ' ครั้งแรกเท่านั้น |
---|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]