![](/img/trans.png)
[英]Python regex not capturing groups properly
我有以下正則表達式(?:RE:\w+|Reference:)\s*((Mr|Mrs|Ms|Miss)?\s+([\w-]+)\s(\w+)) 。 輸入文本示例: RE:11567 無名小姐 12345678 參考:張小姐 12345678 RE:J123 無名小姐 12345678 RE:J1 ...
[英]Python regex not capturing groups properly
我有以下正則表達式(?:RE:\w+|Reference:)\s*((Mr|Mrs|Ms|Miss)?\s+([\w-]+)\s(\w+)) 。 輸入文本示例: RE:11567 無名小姐 12345678 參考:張小姐 12345678 RE:J123 無名小姐 12345678 RE:J1 ...
[英]TypeError: decoding to str: need a bytes-like object, list found
我目前正在處理 Invoice2data 庫並遇到錯誤。 我的模板已准備就緒,但當我將發票傳遞給它時它給我錯誤。 請幫幫我。 這是我的代碼: 這是我的錯誤:Traceback (most recent call last) Input In [9], in <cell line: 6>( ...
[英]invoice2data format matching number
我正在使用invoice2data來匹配發票 PDF 中的特定值。 但是,似乎有些值是在沒有小數的情況下提取的,我不知道為什么。 當我運行 invoice2data 我得到'amount': 118989.0而不是'amount': 1 189,89 正則表達式: Total \/ Brutto\s ...