我想拿出一個正則表達式,不論位置/順序更換特定的詞,但它似乎沒有工作 例輸入: This is a a an the a the testing
正則表達式: (\sa\s)|(\san\s)|(\sthe\s)
實際輸出: This is a the the testing
預期輸出: This is testing
我應該在TextPad中設計一個程序來計算BMI。我無法使用該公式計算出bmi程序。這是我的代碼。 import java.util.Scanner;
public class BmiCalculator {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.
我有一個要求,將文本編輯器中的所有下面的數字替換爲TAB,如記事本++。我嘗試了下面的正則表達式,但仍需要一些手動工作。任何人都可以幫助在單個正則表達式中實現此目的 我用下面的一個手動刪除了[1-9]。得到所有線的因素。 \ < 3.1。[1-9]。[1-9]。[1-9]。 3.1. Cre
3.1.1. Im
3.1.1.1. O
3.1.1.2. Ce
3.1.1.3.