Regular Expressions 101

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/
gm

Test String

Code Generator

Generated Code

$re = '/<node (.+?(\S+row_details([\S+\s+]+?(present_username_text[\S+\s+]+?(bounds\S+)))))/m'; $str = '"<?xml version=\'1.0\' encoding=\'UTF-8\' standalone=\'yes\' ?><hierarchy rotation="0"><node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][500,470]"><node index="0" text="" resource-id="" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][500,470]"><node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,470]"><node index="0" text="" resource-id="jp.naver.line.android:id/action_bar_root" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,470]"><node index="0" text="" resource-id="android:id/content" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,470]"><node index="0" text="" resource-id="" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,470]"><node index="0" text="" resource-id="jp.naver.line.android:id/header" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,62]"><node index="0" text="" resource-id="jp.naver.line.android:id/header_root" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][500,62]"><node index="0" text="" resource-id="jp.naver.line.android:id/header_up_button_bg" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="返回" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,17][35,62]"><node index="0" text="" resource-id="jp.naver.line.android:id/header_up_button" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,22][35,57]" /></node><node index="1" text="" resource-id="jp.naver.line.android:id/main_view_group" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[35,17][496,62]"><node index="0" text="" resource-id="" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[35,17][103,62]"><node index="1" text="購物記錄" resource-id="jp.naver.line.android:id/header_title" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[35,29][103,49]" /></node></node></node></node><node index="1" text="" resource-id="jp.naver.line.android:id/tabs" class="android.widget.HorizontalScrollView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="true" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,62][500,102]"><node index="0" text="" resource-id="" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,62][500,102]"><node index="0" text="" resource-id="" class="androidx.appcompat.app.a$b" package="jp.naver.line.android" content-desc="貼圖(212545)" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" scrollable="false" long-clickable="false" password="false" selected="true" bounds="[158,62][250,102]"><node index="0" text="貼圖(212545)" resource-id="" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="true" bounds="[168,67][240,95]" /></node><node index="1" text="" resource-id="" class="androidx.appcompat.app.a$b" package="jp.naver.line.android" content-desc="表情貼(4458)" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[250,62][342,102]"><node index="0" text="表情貼(4458)" resource-id="" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[260,67][332,95]" /></node></node></node><node index="2" text="" resource-id="jp.naver.line.android:id/tab_layout_divider" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,102][500,103]" /><node index="3" text="" resource-id="jp.naver.line.android:id/view_pager" class="androidx.viewpager.widget.ViewPager" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="true" focused="false" scrollable="true" long-clickable="false" password="false" selected="false" bounds="[0,103][500,470]"><node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,103][500,470]"><node index="0" text="" resource-id="jp.naver.line.android:id/item_list_view" class="androidx.recyclerview.widget.RecyclerView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="true" focused="true" scrollable="true" long-clickable="false" password="false" selected="false" bounds="[0,103][500,470]"><node index="0" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,103][500,164]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_is_new_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,103][21,124]" /><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,110][55,157]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,110][55,157]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,140][52,154]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,105][456,163]"><node index="0" text="臭跩貓愛嗆人-白爛貓超過動" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,105][261,127]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,129][103,147]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,131][77,145]" /><node index="1" text="100" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,128][103,145]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,148][196,163]"><node index="0" text="z0furu" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,148][97,163]" /><node index="1" text="2019/6/20 下午2:59" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[104,149][196,163]" /></node></node><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,128][478,140]" /><node index="4" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,129][492,138]" /></node><node index="1" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,165][500,226]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_is_new_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,165][21,186]" /><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,172][55,219]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,172][55,219]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,202][52,216]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,167][456,225]"><node index="0" text="臭跩貓愛嗆人-白爛貓超過動" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,167][261,189]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,191][103,209]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,193][77,207]" /><node index="1" text="100" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,190][103,207]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,210][224,225]"><node index="0" text="kana840127" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,210][125,225]" /><node index="1" text="2019/6/20 下午1:13" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[132,211][224,225]" /></node></node><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,190][478,202]" /><node index="4" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,191][492,200]" /></node><node index="2" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,227][500,288]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_is_new_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,227][21,248]" /><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,234][55,281]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,234][55,281]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,264][52,278]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,229][456,287]"><node index="0" text="臭跩貓愛嗆人-白爛貓超過動" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,229][261,251]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,253][103,271]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,255][77,269]" /><node index="1" text="100" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,252][103,269]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,272][209,287]"><node index="0" text="hjk3333" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,272][104,287]" /><node index="1" text="2019/6/20 上午11:55" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[111,273][209,287]" /></node></node><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,252][478,264]" /><node index="4" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,253][492,262]" /></node><node index="3" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,289][500,350]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_is_new_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,289][21,310]" /><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,296][55,343]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,296][55,343]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,326][52,340]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,291][456,349]"><node index="0" text="臭跩貓愛嗆人-白爛貓超過動" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,291][261,313]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,315][103,333]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,317][77,331]" /><node index="1" text="100" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,314][103,331]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,334][238,349]"><node index="0" text="Nick.ychuang" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,334][133,349]" /><node index="1" text="2019/6/20 上午10:28" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[140,335][238,349]" /></node></node><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,314][478,326]" /><node index="4" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,315][492,324]" /></node><node index="4" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,351][500,412]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,358][55,405]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,358][55,405]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,388][52,402]" /></node><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,353][456,411]"><node index="0" text="Hand Language 2" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,353][191,375]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,377][96,395]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,379][77,393]" /><node index="1" text="10" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,376][96,393]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,396][206,411]"><node index="0" text="p556788" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,396][107,411]" /><node index="1" text="2019/6/20 上午1:54" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[114,397][206,411]" /></node></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,376][478,388]" /><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,377][492,386]" /></node><node index="5" text="" resource-id="" class="android.view.View" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,413][500,470]"><node index="0" text="" resource-id="jp.naver.line.android:id/purchase_history_row_thumbnail_group" class="android.widget.FrameLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,420][55,467]"><node index="0" text="" resource-id="jp.naver.line.android:id/thumbnail" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[8,420][55,467]" /><node index="1" text="" resource-id="jp.naver.line.android:id/sticker_type_icon" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[38,450][52,464]" /></node><node index="1" text="" resource-id="jp.naver.line.android:id/purchase_history_row_details" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,415][456,470]"><node index="0" text="Hand Language" resource-id="jp.naver.line.android:id/product_name" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,415][178,437]" /><node index="1" text="" resource-id="jp.naver.line.android:id/price_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,439][96,457]"><node index="0" text="" resource-id="jp.naver.line.android:id/coin_mark" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,441][77,455]" /><node index="1" text="10" resource-id="jp.naver.line.android:id/price_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[82,438][96,455]" /></node><node index="2" text="" resource-id="jp.naver.line.android:id/present_area" class="android.widget.LinearLayout" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,458][206,470]"><node index="0" text="p556788" resource-id="jp.naver.line.android:id/present_username_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[65,458][107,470]" /><node index="1" text="2019/6/20 上午1:52" resource-id="jp.naver.line.android:id/present_period_text" class="android.widget.TextView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[114,459][206,470]" /></node></node><node index="2" text="" resource-id="jp.naver.line.android:id/purchase_history_row_gift" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[467,438][478,450]" /><node index="3" text="" resource-id="jp.naver.line.android:id/purchase_history_row_arrow" class="android.widget.ImageView" package="jp.naver.line.android" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[487,439][492,448]" /></node></node></node></node></node></node></node></node></node></node></hierarchy>"'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php