<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: help with regex for masking? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678708#M113418</link>
    <description>&lt;P&gt;Regex is very case-sensitive.&amp;nbsp; This matches the sample event.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RDPword=([^=]+)=PDUserId=([^=]+)=PDPword=([^=]+)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 26 Feb 2024 18:50:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-02-26T18:50:42Z</dc:date>
    <item>
      <title>help with regex for masking?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678704#M113417</link>
      <description>&lt;P&gt;I need to mask data before it being index. my sample his log structure.&lt;BR /&gt;&lt;BR /&gt;"2023-11-02 06:53:00 xx.xxx.xxx.xx GET /Security/Security/Logon 123 - xx.xxx.x.xxx Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/86.0.4240.198+Safari/537.36=&lt;SPAN&gt;&lt;FONT color="#339966"&gt;RDPword=jsndksjs834u935&lt;/FONT&gt;&lt;/SPAN&gt;=PDUserId=jsndksjs834u935=&lt;FONT color="#339966"&gt;PDPword=jsndksjs834u935&lt;/FONT&gt;=RFuser=&amp;amp;securityToken=xxxxxxxx 200 0 0 14"&lt;BR /&gt;&lt;BR /&gt;I need to match highlights in green "&lt;FONT color="#339966"&gt;RDPword=jsndksjs834u935", and&amp;nbsp;"PDPword=jsndksjs834u935"&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;I am using regex this matching the following which I don't want it match &amp;nbsp;"PDUserId=jsndksjs834u935="&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RDPWord&lt;/SPAN&gt;&lt;SPAN&gt;=([^=]+)=PDU&lt;/SPAN&gt;&lt;SPAN&gt;UserId&lt;/SPAN&gt;&lt;SPAN&gt;=([^=]+)=&lt;/SPAN&gt;&lt;SPAN&gt;PDPWord&lt;/SPAN&gt;&lt;SPAN&gt;=([^=]+)&lt;BR /&gt;&lt;BR /&gt;Can someone help me&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 00:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678704#M113417</guid>
      <dc:creator>abi2023</dc:creator>
      <dc:date>2026-01-15T00:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: help with regex for masking?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678708#M113418</link>
      <description>&lt;P&gt;Regex is very case-sensitive.&amp;nbsp; This matches the sample event.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RDPword=([^=]+)=PDUserId=([^=]+)=PDPword=([^=]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678708#M113418</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-26T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with regex for masking?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678713#M113419</link>
      <description>&lt;P&gt;&lt;U&gt;my following regex is matching &amp;nbsp;"&lt;SPAN&gt;&lt;FONT color="#339966"&gt;RDPword=jsndksjs834u935&lt;/FONT&gt;&lt;FONT color="#000000"&gt;=PDUserId=jsndksjs834u935=&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;PDPword=jsndksjs834u935&lt;/FONT&gt;"&lt;BR /&gt;&lt;BR /&gt;I want to exclude follwing "=PDUserId=jsndksjs834u935=" how do I modify the this rex to not match&amp;nbsp;=PDUserId=jsndksjs834u935=&lt;BR /&gt;RDPword=([^=]+)=PDUserId=([^=]+)=PDPword=([^=]+)&lt;BR /&gt;&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;RDPword=([^=]+)=PDUserId=([^=]+)=PDPword=([^=]+)&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678713#M113419</guid>
      <dc:creator>abi2023</dc:creator>
      <dc:date>2024-02-26T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: help with regex for masking?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678731#M113420</link>
      <description>&lt;P&gt;If you just want a regex which you can use with SEDCMD, just match each part separately and substitute with nothing. And you can use the same match several times to match and substitute all matching strings.&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;PRE&gt;s/[RP]DPword=[^=]+//g&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Feb 2024 22:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/help-with-regex-for-masking/m-p/678731#M113420</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-26T22:28:46Z</dc:date>
    </item>
  </channel>
</rss>

