ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. regex
    Log in to post
    • All categories
    • DustinB3403D

      Need Regex Help

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved IT Discussion regex
      27
      0 Votes
      27 Posts
      2k Views
      travisdh1T

      @dustinb3403 said in Need Regex Help:

      @travisdh1 No, backend database access isn't available to me.

      Well, that's a little ****y. No db gui has given me everything I wanted to do with a database.

    • DustinB3403D

      If I wanted to grep through a file or multiple at once....

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion grep unix docx2txt regex
      19
      0 Votes
      19 Posts
      1k Views
      M

      @DustinB3403 : Team effort! 🙂

    • wirestyle22W

      How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion regex e-mail filtering
      24
      0 Votes
      24 Posts
      2k Views
      scottalanmillerS

      What spam examples will this block?

    • JaredBuschJ

      How can I sed or regex this out

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion regex sed
      7
      2 Votes
      7 Posts
      1k Views
      RomoR

      @jaredbusch said in How can I sed or regex this out:

      @romo said in How can I sed or regex this out:

      @jaredbusch said in How can I sed or regex this out:

      ****** Object: UserDefinedFunction [dbo].[FiscalMo] Script Date: 11/30/2017 10:24:23 AM ******

      sed 's/Script.*M //g'

      I need at least one * and the / to close.

      So this?

      sed 's/Script.*M /\ \*\//g'

      You are escaping seds delimiters with that.

      Changing the delimiters for better clarity:

      sed 's|Script.*M ||g'

      From Script to M + space, replace with space,. It keeps all your * and the final /.

      0_1512131437191_Screenshot_20171201-062914.png

    • ObsolesceO

      PowerShell Regex - How to remove everything after first line?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell regex computer name dell tag
      9
      1 Votes
      9 Posts
      3k Views
      travisdh1T

      @tim_g said in PowerShell Regex - How to remove everything after first line?:

      Actually, I'm sticking to this:

      $compName = Get-WmiObject win32_ComputerSystem | Select-Object -ExpandProperty Name if ($compName -match "WINDOWS") { $dellTag = Get-WmiObject win32_bios | Select-Object -ExpandProperty SerialNumber Rename-Computer -NewName $dellTag -Force -Restart } Exit

      Compared to sed, that makes my head hurt. Glad you got it sorted, and an example for when I'll need to do the same thing.

    • mlnewsM

      Stop Being AWKward, Filter with Awk on Linux

      Watching Ignoring Scheduled Pinned Locked Moved News awk regex linux unix tecmint
      3
      4 Votes
      3 Posts
      1k Views
      scottalanmillerS

      I use it very little but have the odd task that I use it for. It's difficult to pop into a one liner so I try to use other tools when possible.

    • scottalanmillerS

      Using GREP to Find an IP Address

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion bash regular expression regex shell unix linux grep
      1
      3 Votes
      1 Posts
      1k Views
      No one has replied
    • 1 / 1