IT Log

Record various IT issues and difficulties.

Tag: String


  • “Manipulating Redis in Java and with Spring”

    Java Environment: 1. Create a Maven Project 2. Import Dependencies redis.clients jedis 4.3.2 Here, Jedis is used (providing APIs highly consistent with Redis commands) 3. Configure Port Forwarding Prevent Redis port from being attacked by hackers; Map the Redis port of the cloud server to the local host. Configuring in xshell: At this point, accessing…


  • How to extract part of a string from a sequence of numbers

    To extract a specific part of a string embedded within a sequence of numbers, we can use regular expressions to identify transitions from numeric characters to non-numeric ones. Here’s how you can achieve this: Problem Understanding: Identify the substring that lies between sequences of numbers. For example, in “123abc456”, the desired extraction is “abc”. Regular…