You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求为Q3未审计财务数据文本编写正则表达式并翻译内容

Hey there! Let's work out the regex solution for your financial data while keeping all technical terms and data formats intact. First, let's restate the exact target text we need to match:

(Q3 未审计):2018年1-3月的EPU为0.28塔卡(Tk.),2017年同期为0.10塔卡;2017年7月-2018年3月的EPU为0.50塔卡,2016年同期为0.43塔卡。2017年7月-2018年3月的NOCFPU为0.48塔卡,2016年同期为0.35塔卡。按市价计算的单位NAV在2018年3月31日为11.21塔卡,2017年6月30日为12.06塔卡;按成本价计算的单位NAV在2018年3月31日为11.01塔卡,2017年6月30日为11.54塔卡。


Regex Solution (Full Match)

This regex will perfectly match the entire text while preserving all original formats and terms:

^\(Q3 未审计\):(\d{4}年\d{1,2}-\d{1,2}月的EPU为\d+\.\d{2}塔卡\(Tk\.\),\d{4}年同期为\d+\.\d{2}塔卡;){2}(\d{4}年\d{1,2}月-\d{4}年\d{1,2}月的NOCFPU为\d+\.\d{2}塔卡,\d{4}年同期为\d+\.\d{2}塔卡。)(按市价计算的单位NAV在\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡,\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡;按成本价计算的单位NAV在\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡,\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡。)$

Breakdown of the Regex

  • ^\(Q3 未审计\):: Matches the fixed opening label, with escaped parentheses to avoid regex syntax conflicts
  • (\d{4}年\d{1,2}-\d{1,2}月的EPU为\d+\.\d{2}塔卡\(Tk\.\),\d{4}年同期为\d+\.\d{2}塔卡;){2}: Matches the two EPU data segments. {2} repeats the pattern twice, \d{4} captures 4-digit years, \d{1,2} handles 1-2 digit months/days, and \d+\.\d{2} targets numbers with exactly two decimal places
  • (\d{4}年\d{1,2}月-\d{4}年\d{1,2}月的NOCFPU为\d+\.\d{2}塔卡,\d{4}年同期为\d+\.\d{2}塔卡。): Matches the cross-year NOCFPU data point
  • (按市价计算的单位NAV在\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡,\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡;按成本价计算的单位NAV在\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡,\d{4}年\d{1,2}月\d{1,2}日为\d+\.\d{2}塔卡。): Matches both market-value and cost-value NAV data segments

Regex for Data Extraction (Capture Groups)

If you need to extract specific values (like years, metrics, or numbers), use this version with granular capture groups:

^\(Q3 未审计\):(\d{4})年(\d{1,2})-(\d{1,2})月的EPU为(\d+\.\d{2})塔卡\(Tk\.\),(\d{4})年同期为(\d+\.\d{2})塔卡;(\d{4})年(\d{1,2})月-(\d{4})年(\d{1,2})月的EPU为(\d+\.\d{2})塔卡,(\d{4})年同期为(\d+\.\d{2})塔卡。(\d{4})年(\d{1,2})月-(\d{4})年(\d{1,2})月的NOCFPU为(\d+\.\d{2})塔卡,(\d{4})年同期为(\d+\.\d{2})塔卡。按市价计算的单位NAV在(\d{4})年(\d{1,2})月(\d{1,2})日为(\d+\.\d{2})塔卡,(\d{4})年(\d{1,2})月(\d{1,2})日为(\d+\.\d{2})塔卡;按成本价计算的单位NAV在(\d{4})年(\d{1,2})月(\d{1,2})日为(\d+\.\d{2})塔卡,(\d{4})年(\d{1,2})月(\d{1,2})日为(\d+\.\d{2})塔卡。$

Each capture group isolates a specific piece of data (year, month, metric value) for easy retrieval.

内容的提问来源于stack exchange,提问作者Ashraful Haque Tushar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 10:13:59