REGEXを使用してテキスト内にbbcodesを識別しようとしています。 Lorem ipsum dolor sit amet, [color] consectetur adipisicing el it labore et [color=red]dolore magna aliqua[/color] minim veniam.
そして現在、私はこのパターン使用しています: /\[([a-z0
私は、エンコーディングのものを無視して、すべての「&」文字を選択する必要が私の要件は、このような文字列が与えられ 、 Edit the Expression &1 Text to & se&e matches ). Roll & over ma&tches & or t
。私はすべてのエンコーディング文字の選択に成功しました。ここにはdemoがあります。今私はそれ
1〜8文字の正規表現を使用してテキストを抽出したい2文字以上は含まない([A-Za-z])。例えば :この例では Valid: "12A-32B" from the text "Register:12A-32B Index:A"
Invalid: "12 Index" from the text "Register:12 Index:A"
、抽出されたテキストは、テキストが境界として「登録」
は、私はこれらのような数千行のテキストファイルがあります。 8/15/2016,,Amazon,,15.93 ;most are like this
8/24/2016,,Google,18.73 ;a few are like this - one comma only
8/26/2016,,Ebay,,60.2 ;
ラインのほとんどは数値に続いて、別の2つのコンマに続くいくつかのテキス