The modifier `*´ is similar to `+´, but it also accepts zero occurrenc การแปล - The modifier `*´ is similar to `+´, but it also accepts zero occurrenc ไทย วิธีการพูด

The modifier `*´ is similar to `+´,

The modifier `*´ is similar to `+´, but it also accepts zero occurrences of characters of the class. A typical use is to match optional spaces between parts of a pattern. For instance, to match an empty parenthesis pair, such as () or ( ), you use the pattern '%(%s*%)'. (The pattern '%s*' matches zero or more spaces. Parentheses have a special meaning in a pattern, so we must escape them with a `%´.) As another example, the pattern '[_%a][_%w]*' matches identifiers in a Lua program: a sequence that starts with a letter or an underscore, followed by zero or more underscores or alphanumeric characters.

Like `*´, the modifier `-´ also matches zero or more occurrences of characters of the original class. However, instead of matching the longest sequence, it matches the shortest one. Sometimes, there is no difference between `*´ or `-´, but usually they present rather different results. For instance, if you try to find an identifier with the pattern '[_%a][_%w]-', you will find only the first letter, because the '[_%w]-' will always match the empty sequence. On the other hand, suppose you want to find comments in a C program. Many people would first try '/%*.*%*/' (that is, a "/*" followed by a sequence of any characters followed by "*/", written with the appropriate escapes). However, because the '.*' expands as far as it can, the first "/*" in the program would close only with the last "*/":
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
The modifier `*´ is similar to `+´, but it also accepts zero occurrences of characters of the class. A typical use is to match optional spaces between parts of a pattern. For instance, to match an empty parenthesis pair, such as () or ( ), you use the pattern '%(%s*%)'. (The pattern '%s*' matches zero or more spaces. Parentheses have a special meaning in a pattern, so we must escape them with a `%´.) As another example, the pattern '[_%a][_%w]*' matches identifiers in a Lua program: a sequence that starts with a letter or an underscore, followed by zero or more underscores or alphanumeric characters.Like `*´, the modifier `-´ also matches zero or more occurrences of characters of the original class. However, instead of matching the longest sequence, it matches the shortest one. Sometimes, there is no difference between `*´ or `-´, but usually they present rather different results. For instance, if you try to find an identifier with the pattern '[_%a][_%w]-', you will find only the first letter, because the '[_%w]-' will always match the empty sequence. On the other hand, suppose you want to find comments in a C program. Many people would first try '/%*.*%*/' (that is, a "/*" followed by a sequence of any characters followed by "*/", written with the appropriate escapes). However, because the '.*' expands as far as it can, the first "/*" in the program would close only with the last "*/":
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
ตัวแปลง `* 'คล้ายกับ` +' แต่ก็ยังยอมรับการเป็นศูนย์การเกิดขึ้นของตัวละครของชั้นเรียน การใช้งานทั่วไปจะให้ตรงกับช่องว่างระหว่างส่วนที่เป็นตัวเลือกของรูปแบบ ยกตัวอย่างเช่นเพื่อให้ตรงกับคู่วงเล็บที่ว่างเปล่าเช่น (ก) หรือ () คุณสามารถใช้รูปแบบ '% (% s *%) (รูปแบบ '% s *' ตรงกับศูนย์หรือมากกว่าพื้นที่. วงเล็บมีความหมายเป็นพิเศษในรูปแบบดังนั้นเราจึงต้องหลบหนีพวกเขาด้วย `% '.) เป็นอีกหนึ่งตัวอย่างรูปแบบ [_% เป็น] [_% W] * 'ตรงกับระบุในโปรแกรม Lua. ลำดับที่เริ่มต้นด้วยตัวอักษรหรือขีดล่างตามด้วยศูนย์หรือมากกว่าขีดหรือตัวอักษรและตัวเลขเหมือน`*' การปรับปรุง` -'ยังตรงกับศูนย์หรือมากกว่าการเกิดขึ้นของตัวละคร ของชั้นเรียนเดิม แต่แทนที่จะตรงกับลำดับที่ยาวที่สุดก็ตรงกับอย่างใดอย่างหนึ่งที่สั้นที่สุด บางครั้งมีความแตกต่างระหว่าง `* 'หรือ` -'ไม่มี แต่พวกเขามักจะนำเสนอค่อนข้างผลลัพธ์ที่แตกต่าง ตัวอย่างเช่นถ้าคุณพยายามที่จะหาตัวบ่งชี้ที่มีรูปแบบที่ '[_% เป็น] [_% น้ำหนัก] -' คุณจะพบเพียงตัวอักษรตัวแรกเพราะ '[_% น้ำหนัก] -' มักจะตรงกับที่ว่างเปล่า ลำดับ. ในทางกลับกันสมมติว่าคุณต้องการที่จะหาความคิดเห็นในโปรแกรม C หลายคนก่อนจะลอง '/%*.*%*/' (นั่นคือเป็น "/ *" ตามด้วยลำดับของตัวอักษรใด ๆ ตามด้วย "* /" เขียนด้วยหนีที่เหมาะสม) แต่เนื่องจากขยายตัวเท่าที่จะทำได้ครั้งแรก "/ *" ในโปรแกรมจะปิดเฉพาะกับสุดท้าย "* /" *.:

การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
หมู ` * ใหม่คล้ายกับ ` ใหม่ แต่มันยังยอมรับศูนย์เหตุการณ์ของตัวละครของชั้น ใช้งานทั่วไปคือเพื่อให้ตรงกับเป็นทางเลือกระหว่างชิ้นส่วนของรูปแบบ ตัวอย่างเช่นเพื่อให้ตรงกับคู่วงเล็บว่าง เช่น ( ) หรือ ( ) , คุณสามารถใช้รูปแบบ ' % ( % * % ) ' ( รูปแบบ ' % s * ' ตรงกับศูนย์หรือมากกว่าเป็น . วงเล็บมีความหมายพิเศษในรูปแบบดังนั้นเราต้องหนีเขาด้วย ` % ใหม่ ) เป็นอีกตัวอย่างหนึ่ง รูปแบบ _ ' [ % ] % W ' ] * [ _ ตรงกับที่ระบุในโปรแกรมลัวะ : ลำดับที่เริ่มต้นด้วยตัวอักษรหรือขีดเส้นใต้ตามศูนย์หรือมากกว่าขีดหรือตัวอักษรและตัวเลข

ชอบ ` * . ใหม่ , 2 ` - ใหม่ยังตรงกับศูนย์หรือมากกว่าเหตุการณ์ของตัวละครของเดิมชั้น อย่างไรก็ตาม แทนการจับคู่ลําดับที่ยาวที่สุดมันตรงกับที่สั้นที่สุดคนหนึ่ง บางครั้งไม่มีความแตกต่างระหว่าง ` * ` - ใหม่หรือใหม่ แต่พวกเขามักจะนำเสนอผลลัพธ์ที่แตกต่างกันมากกว่า ตัวอย่างเช่นถ้าคุณพยายามที่จะค้นหาระบุด้วยรูปแบบ ' [ % _ ] ] - [ _ % w ' , คุณจะพบเพียงจดหมายฉบับแรก เพราะ _ % W ' [ ] ' จะตรงกับว่างเปล่าตามลำดับ บนมืออื่น ๆ , สมมติว่า คุณต้องการค้นหาความคิดเห็นใน C โปรแกรมหลายคนจะลองครั้งแรก ' / * * * / ' ( นั่นคือ " / * " ตามด้วยลำดับของอักขระใด ๆ ตามด้วย " * / " เขียนที่เหมาะสมกับครั้ง ) อย่างไรก็ตาม เนื่องจาก ' * ' ขยายเท่าที่ทำได้ แรก " / * " โปรแกรมจะปิดเฉพาะกับล่าสุด " * / "
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: