ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Image.regexpRename
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বর্তমান ব্যান্ড নামগুলিতে একটি নিয়মিত এক্সপ্রেশন প্রতিস্থাপন প্রয়োগ করে একটি চিত্রের ব্যান্ডগুলির নাম পরিবর্তন করে৷ regex দ্বারা মেলে না এমন কোনো ব্যান্ড নাম পরিবর্তন না করেই কপি করা হবে।
ব্যবহার | রিটার্নস | Image. regexpRename (regex, replacement, all ) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: input | ছবি | পুনঃনামকরণের জন্য ব্যান্ড সমন্বিত চিত্র। |
regex | স্ট্রিং | প্রতিটি ব্যান্ডের নামের সাথে মেলে একটি নিয়মিত অভিব্যক্তি। |
replacement | স্ট্রিং | প্রতিটি মিল প্রতিস্থাপন করার জন্য পাঠ্য। ক্যাপচার করা মানগুলির জন্য $n সিনট্যাক্স সমর্থন করে। |
all | বুলিয়ান, ডিফল্ট: সত্য | সত্য হলে, একটি প্রদত্ত স্ট্রিংয়ের সমস্ত মিল প্রতিস্থাপন করা হবে। অন্যথায়, প্রতিটি স্ট্রিংয়ের শুধুমাত্র প্রথম ম্যাচটি প্রতিস্থাপিত হবে। |
,বর্তমান ব্যান্ড নামগুলিতে একটি নিয়মিত এক্সপ্রেশন প্রতিস্থাপন প্রয়োগ করে একটি চিত্রের ব্যান্ডগুলির নাম পরিবর্তন করে৷ regex দ্বারা মেলে না এমন কোনো ব্যান্ড নাম পরিবর্তন না করেই কপি করা হবে।
ব্যবহার | রিটার্নস | Image. regexpRename (regex, replacement, all ) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: input | ছবি | পুনঃনামকরণের জন্য ব্যান্ড সমন্বিত চিত্র। |
regex | স্ট্রিং | প্রতিটি ব্যান্ডের নামের সাথে মেলে একটি নিয়মিত অভিব্যক্তি। |
replacement | স্ট্রিং | প্রতিটি মিল প্রতিস্থাপন করার জন্য পাঠ্য। ক্যাপচার করা মানগুলির জন্য $n সিনট্যাক্স সমর্থন করে। |
all | বুলিয়ান, ডিফল্ট: সত্য | সত্য হলে, একটি প্রদত্ত স্ট্রিংয়ের সমস্ত মিল প্রতিস্থাপন করা হবে। অন্যথায়, প্রতিটি স্ট্রিংয়ের শুধুমাত্র প্রথম ম্যাচটি প্রতিস্থাপিত হবে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eApplies a regular expression to rename image bands, leaving unmatched bands unchanged.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility to replace all regex matches or only the first match in each band name using the \u003ccode\u003eall\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eUses \u003ccode\u003e$n\u003c/code\u003e syntax in the 'replacement' argument to utilize captured values from the regex.\u003c/p\u003e\n"],["\u003cp\u003eOperates directly on the provided input image and returns a modified image with the renamed bands.\u003c/p\u003e\n"]]],["This functionality renames image bands using regular expressions. It takes an image, a `regex` to match band names, and a `replacement` string (supporting captured groups via `$n`). Bands not matching the `regex` remain unchanged. An optional `all` parameter (defaulting to `true`) determines whether to replace all regex matches or just the first one per band name. The function returns a new image with the updated band names.\n"],null,["# ee.Image.regexpRename\n\nRenames the bands of an image by applying a regular expression replacement to the current band names. Any bands not matched by the regex will be copied over without renaming.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|---------|\n| Image.regexpRename`(regex, replacement, `*all*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| this: `input` | Image | The image containing the bands to rename. |\n| `regex` | String | A regular expression to match in each band name. |\n| `replacement` | String | The text with which to replace each match. Supports $n syntax for captured values. |\n| `all` | Boolean, default: true | If true, all matches in a given string will be replaced. Otherwise, only the first match in each string will be replaced. |"]]